Mercurial > SDL_sound_CoreAudio
comparison decoders/voc.c @ 306:c97be6e1bd27
Added framework for Sound_Seek() support.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 21 Apr 2002 18:39:47 +0000 |
parents | ca43129df299 |
children | f6475949cd59 |
comparison
equal
deleted
inserted
replaced
305:c345a40a8a99 | 306:c97be6e1bd27 |
---|---|
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 static int VOC_rewind(Sound_Sample *sample); |
62 static int VOC_seek(Sound_Sample *sample, Uint32 ms); | |
62 | 63 |
63 static const char *extensions_voc[] = { "VOC", NULL }; | 64 static const char *extensions_voc[] = { "VOC", NULL }; |
64 const Sound_DecoderFunctions __Sound_DecoderFunctions_VOC = | 65 const Sound_DecoderFunctions __Sound_DecoderFunctions_VOC = |
65 { | 66 { |
66 { | 67 { |
73 VOC_init, /* init() method */ | 74 VOC_init, /* init() method */ |
74 VOC_quit, /* quit() method */ | 75 VOC_quit, /* quit() method */ |
75 VOC_open, /* open() method */ | 76 VOC_open, /* open() method */ |
76 VOC_close, /* close() method */ | 77 VOC_close, /* close() method */ |
77 VOC_read, /* read() method */ | 78 VOC_read, /* read() method */ |
78 VOC_rewind /* rewind() method */ | 79 VOC_rewind, /* rewind() method */ |
80 VOC_seek /* seek() method */ | |
79 }; | 81 }; |
80 | 82 |
81 | 83 |
82 /* Private data for VOC file */ | 84 /* Private data for VOC file */ |
83 typedef struct vocstuff { | 85 typedef struct vocstuff { |
500 BAIL_IF_MACRO(rc != v->start_pos, ERR_IO_ERROR, 0); | 502 BAIL_IF_MACRO(rc != v->start_pos, ERR_IO_ERROR, 0); |
501 v->rest = 0; | 503 v->rest = 0; |
502 return(1); | 504 return(1); |
503 } /* VOC_rewind */ | 505 } /* VOC_rewind */ |
504 | 506 |
507 | |
508 static int VOC_seek(Sound_Sample *sample, Uint32 ms) | |
509 { | |
510 BAIL_MACRO("!!! FIXME: Not implemented", 0); | |
511 } /* VOC_seek */ | |
512 | |
513 | |
505 #endif /* SOUND_SUPPORTS_VOC */ | 514 #endif /* SOUND_SUPPORTS_VOC */ |
506 | 515 |
507 /* end of voc.c ... */ | 516 /* end of voc.c ... */ |