Mercurial > sdl-ios-xcode
comparison include/SDL_audio.h @ 188:901e45fd0432
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 23 Sep 2001 17:39:30 +0000 |
parents | cf2af46e9e2a |
children | b8688cfdc232 |
comparison
equal
deleted
inserted
replaced
187:94645dc9479b | 188:901e45fd0432 |
---|---|
48 typedef struct { | 48 typedef struct { |
49 int freq; /* DSP frequency -- samples per second */ | 49 int freq; /* DSP frequency -- samples per second */ |
50 Uint16 format; /* Audio data format */ | 50 Uint16 format; /* Audio data format */ |
51 Uint8 channels; /* Number of channels: 1 mono, 2 stereo */ | 51 Uint8 channels; /* Number of channels: 1 mono, 2 stereo */ |
52 Uint8 silence; /* Audio buffer silence value (calculated) */ | 52 Uint8 silence; /* Audio buffer silence value (calculated) */ |
53 Uint16 samples; /* Audio buffer size in samples */ | 53 Uint16 samples; /* Audio buffer size in samples (power of 2) */ |
54 Uint16 padding; /* Necessary for some compile environments */ | 54 Uint16 padding; /* Necessary for some compile environments */ |
55 Uint32 size; /* Audio buffer size in bytes (calculated) */ | 55 Uint32 size; /* Audio buffer size in bytes (calculated) */ |
56 /* This function is called when the audio device needs more data. | 56 /* This function is called when the audio device needs more data. |
57 'stream' is a pointer to the audio data buffer | 57 'stream' is a pointer to the audio data buffer |
58 'len' is the length of that buffer in bytes. | 58 'len' is the length of that buffer in bytes. |