Class cocos.audio.SDL.mixer.Mix_Chunk

    ??._CData --+    
                |    
_ctypes.Structure --+
                    |
                   Mix_Chunk
Internal format for an audio chunk.

Methods

  __getattr__(self, attr)
Inherited from _ctypes.Structure: __init__, __new__ Inherited from unreachable._CData: __ctypes_from_outparam__, __hash__, __reduce__, __setstate__

Properties

Inherited from unreachable._CData: _b_base_, _b_needsfree_

Instance Variables

SDL_array abuf
Buffer of audio data
int alen = <Field type=c_ulong, ofs=8, size=4>
Length of audio buffer
int allocated = <Field type=c_long, ofs=0, size=4>
Undocumented.
int volume = <Field type=c_ubyte, ofs=12, size=1>
Per-sample volume, in range [0, 128]

Class Variables

  _fields_ = [('allocated', <class 'ctypes.c_long'>), ('_abuf', ...

Class Variable Details

_fields_

Value:
[('allocated', <class 'ctypes.c_long'>),
 ('_abuf', <class 'pyglet.gl.gl.LP_c_ubyte'>),
 ('alen', <class 'ctypes.c_ulong'>),
 ('volume', <class 'ctypes.c_ubyte'>)]