Mercurial > SDL_sound_CoreAudio
comparison decoders/shn.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 | 069ce624d6cf |
comparison
equal
deleted
inserted
replaced
305:c345a40a8a99 | 306:c97be6e1bd27 |
---|---|
61 static void SHN_quit(void); | 61 static void SHN_quit(void); |
62 static int SHN_open(Sound_Sample *sample, const char *ext); | 62 static int SHN_open(Sound_Sample *sample, const char *ext); |
63 static void SHN_close(Sound_Sample *sample); | 63 static void SHN_close(Sound_Sample *sample); |
64 static Uint32 SHN_read(Sound_Sample *sample); | 64 static Uint32 SHN_read(Sound_Sample *sample); |
65 static int SHN_rewind(Sound_Sample *sample); | 65 static int SHN_rewind(Sound_Sample *sample); |
66 static int SHN_seek(Sound_Sample *sample, Uint32 ms); | |
66 | 67 |
67 static const char *extensions_shn[] = { "SHN", NULL }; | 68 static const char *extensions_shn[] = { "SHN", NULL }; |
68 const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN = | 69 const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN = |
69 { | 70 { |
70 { | 71 { |
77 SHN_init, /* init() method */ | 78 SHN_init, /* init() method */ |
78 SHN_quit, /* quit() method */ | 79 SHN_quit, /* quit() method */ |
79 SHN_open, /* open() method */ | 80 SHN_open, /* open() method */ |
80 SHN_close, /* close() method */ | 81 SHN_close, /* close() method */ |
81 SHN_read, /* read() method */ | 82 SHN_read, /* read() method */ |
82 SHN_rewind /* rewind() method */ | 83 SHN_rewind, /* rewind() method */ |
84 SHN_seek /* seek() method */ | |
83 }; | 85 }; |
84 | 86 |
85 | 87 |
86 #define SHN_BUFSIZ 512 | 88 #define SHN_BUFSIZ 512 |
87 | 89 |
1320 SHN_close(sample); | 1322 SHN_close(sample); |
1321 return(SHN_open(sample, "SHN")); | 1323 return(SHN_open(sample, "SHN")); |
1322 #endif | 1324 #endif |
1323 } /* SHN_rewind */ | 1325 } /* SHN_rewind */ |
1324 | 1326 |
1327 | |
1328 static int SHN_seek(Sound_Sample *sample, Uint32 ms) | |
1329 { | |
1330 BAIL_MACRO("!!! FIXME: Not implemented", 0); | |
1331 } /* SHN_seek */ | |
1332 | |
1333 | |
1325 #endif /* defined SOUND_SUPPORTS_SHN */ | 1334 #endif /* defined SOUND_SUPPORTS_SHN */ |
1326 | 1335 |
1327 /* end of shn.c ... */ | 1336 /* end of shn.c ... */ |
1328 | 1337 |