Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audio_c.h @ 2664:344c8da164f4 gsoc2008_audio_resampling
Added streamer code. I haven't yet incorporated it into SDL_RunAudio() though.
author | Aaron Wishnick <schnarf@gmail.com> |
---|---|
date | Tue, 12 Aug 2008 00:50:58 +0000 |
parents | 3b4ce57c6215 |
children | f39a056aec8b |
comparison
equal
deleted
inserted
replaced
2663:0caed045d01b | 2664:344c8da164f4 |
---|---|
40 SDL_AudioFormat dst_fmt; | 40 SDL_AudioFormat dst_fmt; |
41 SDL_AudioFilter filter; | 41 SDL_AudioFilter filter; |
42 } SDL_AudioTypeFilters; | 42 } SDL_AudioTypeFilters; |
43 extern const SDL_AudioTypeFilters sdl_audio_type_filters[]; | 43 extern const SDL_AudioTypeFilters sdl_audio_type_filters[]; |
44 | 44 |
45 /* Streamer */ | |
46 typedef struct | |
47 { | |
48 Uint8 *buffer; | |
49 int max_len; // the maximum length in bytes | |
50 int read_pos, write_pos; // the position of the write and read heads in bytes | |
51 } SDL_AudioStreamer; | |
52 | |
45 /* vi: set ts=4 sw=4 expandtab: */ | 53 /* vi: set ts=4 sw=4 expandtab: */ |