Mercurial > SDL_sound_CoreAudio
comparison SDL_sound.h @ 170:e91fb8d5bd62
Updated Sound_DecodeAll()'s comments.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 26 Nov 2001 04:41:33 +0000 |
parents | 1df5c106504e |
children | 47cc2de2ae36 |
comparison
equal
deleted
inserted
replaced
169:a1255c02bab1 | 170:e91fb8d5bd62 |
---|---|
403 * that a streaming source (for example, from a SDL_RWops that is getting | 403 * that a streaming source (for example, from a SDL_RWops that is getting |
404 * fed from an Internet radio feed that doesn't end) may fill all available | 404 * fed from an Internet radio feed that doesn't end) may fill all available |
405 * memory before giving up...be sure to use this on finite sound sources | 405 * memory before giving up...be sure to use this on finite sound sources |
406 * only! | 406 * only! |
407 * | 407 * |
408 * When decoding the sample in its entirety, the work is done one buffer at a | |
409 * time. That is, sound is decoded in sample->buffer_size blocks, and | |
410 * appended to a continually-growing buffer until the decoding completes. | |
411 * That means that this function will need enough RAM to hold approximately | |
412 * sample->buffer_size bytes plus the complete decoded sample at most. The | |
413 * larger your buffer size, the less overhead this function needs, but beware | |
414 * the possibility of paging to disk. Best to make this user-configurable if | |
415 * the sample isn't specific and small. | |
416 * | |
408 * @param sample Do all decoding for this Sound_Sample. | 417 * @param sample Do all decoding for this Sound_Sample. |
409 * @return number of bytes decoded into sample->buffer. If it is less than | 418 * @return number of bytes decoded into sample->buffer. You should check |
410 * sample->buffer_size, then you should check sample->flags to see | 419 * sample->flags to see what the current state of the sample is |
411 * what the current state of the sample is (EOF, error, read again). | 420 * (EOF, error, read again). |
412 */ | 421 */ |
413 extern DECLSPEC Uint32 Sound_DecodeAll(Sound_Sample *sample); | 422 extern DECLSPEC Uint32 Sound_DecodeAll(Sound_Sample *sample); |
414 | 423 |
415 #ifdef __cplusplus | 424 #ifdef __cplusplus |
416 } | 425 } |