Class cocos.audio.SDL.sound.Sound_Sample

ctypes.Structure --+
                   |
                  Sound_Sample

Represents sound data in the process of being decoded.

The Sound_Sample structure is the heart of SDL_sound. This holds information about a source of sound data as it is beind decoded. All fields in this structure are read-only.

Methods

  __getattr__(self, name)

Instance Variables

Sound_AudioInfo actual
Actual audio format of the sample
SDL_array buffer
Buffer of decoded data, as bytes
int buffer_size
Current size of the buffer, in bytes
Sound_DecoderInfo decoder
Decoder used for this sample
Sound_AudioInfo desired
Desired audio format for conversion
int flags
Bitwise combination of SOUND_SAMPLEFLAG_CANSEEK, SOUND_SAMPLEFLAG_EOF, SOUND_SAMPLEFLAG_ERROR, SOUND_SAMPLEFLAG_EGAIN

Class Variables

  _fields_ = [('opaque', c_void_p), ('_decoder', POINTER(Sound_D...

Class Variable Details

_fields_

Value:
[('opaque', c_void_p), ('_decoder', POINTER(Sound_DecoderInfo)), ('des\
ired', Sound_AudioInfo), ('actual', Sound_AudioInfo), ('_buffer', POIN\
TER(c_ubyte)), ('buffer_size', c_uint), ('flags', c_int)]