Mercurial > SDL_sound_CoreAudio
comparison decoders/voc.c @ 221:c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 17 Jan 2002 20:53:53 +0000 |
parents | 47cc2de2ae36 |
children | 1bafef18dabf |
comparison
equal
deleted
inserted
replaced
220:ef72f3c490e7 | 221:c9772a9f5271 |
---|---|
56 static int VOC_init(void); | 56 static int VOC_init(void); |
57 static void VOC_quit(void); | 57 static void VOC_quit(void); |
58 static int VOC_open(Sound_Sample *sample, const char *ext); | 58 static int VOC_open(Sound_Sample *sample, const char *ext); |
59 static void VOC_close(Sound_Sample *sample); | 59 static void VOC_close(Sound_Sample *sample); |
60 static Uint32 VOC_read(Sound_Sample *sample); | 60 static Uint32 VOC_read(Sound_Sample *sample); |
61 static int VOC_rewind(Sound_Sample *sample); | |
61 | 62 |
62 static const char *extensions_voc[] = { "VOC", NULL }; | 63 static const char *extensions_voc[] = { "VOC", NULL }; |
63 const Sound_DecoderFunctions __Sound_DecoderFunctions_VOC = | 64 const Sound_DecoderFunctions __Sound_DecoderFunctions_VOC = |
64 { | 65 { |
65 { | 66 { |
67 "Creative Labs Voice format", | 68 "Creative Labs Voice format", |
68 "Ryan C. Gordon <icculus@clutteredmind.org>", | 69 "Ryan C. Gordon <icculus@clutteredmind.org>", |
69 "http://www.icculus.org/SDL_sound/" | 70 "http://www.icculus.org/SDL_sound/" |
70 }, | 71 }, |
71 | 72 |
72 VOC_init, /* init() method */ | 73 VOC_init, /* init() method */ |
73 VOC_quit, /* quit() method */ | 74 VOC_quit, /* quit() method */ |
74 VOC_open, /* open() method */ | 75 VOC_open, /* open() method */ |
75 VOC_close, /* close() method */ | 76 VOC_close, /* close() method */ |
76 VOC_read /* read() method */ | 77 VOC_read, /* read() method */ |
78 VOC_rewind /* rewind() method */ | |
77 }; | 79 }; |
78 | 80 |
79 | 81 |
80 /* Private data for VOC file */ | 82 /* Private data for VOC file */ |
81 typedef struct vocstuff { | 83 typedef struct vocstuff { |
485 } /* while */ | 487 } /* while */ |
486 | 488 |
487 return(v->bufpos); | 489 return(v->bufpos); |
488 } /* VOC_read */ | 490 } /* VOC_read */ |
489 | 491 |
492 | |
493 static int VOC_rewind(Sound_Sample *sample) | |
494 { | |
495 /* !!! FIXME. */ | |
496 SNDDBG(("VOC_rewind(): Write me!\n")); | |
497 assert(0); | |
498 return(0); | |
499 } /* VOC_rewind */ | |
500 | |
490 #endif /* SOUND_SUPPORTS_VOC */ | 501 #endif /* SOUND_SUPPORTS_VOC */ |
491 | 502 |
492 /* end of voc.c ... */ | 503 /* end of voc.c ... */ |