comparison decoders/shn.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 8c2cb920a383
children 15a3b1a1291c
comparison
equal deleted inserted replaced
220:ef72f3c490e7 221:c9772a9f5271
64 static int SHN_init(void); 64 static int SHN_init(void);
65 static void SHN_quit(void); 65 static void SHN_quit(void);
66 static int SHN_open(Sound_Sample *sample, const char *ext); 66 static int SHN_open(Sound_Sample *sample, const char *ext);
67 static void SHN_close(Sound_Sample *sample); 67 static void SHN_close(Sound_Sample *sample);
68 static Uint32 SHN_read(Sound_Sample *sample); 68 static Uint32 SHN_read(Sound_Sample *sample);
69 static int SHN_rewind(Sound_Sample *sample);
69 70
70 static const char *extensions_shn[] = { "SHN", NULL }; 71 static const char *extensions_shn[] = { "SHN", NULL };
71 const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN = 72 const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN =
72 { 73 {
73 { 74 {
75 "Shorten-compressed audio data", 76 "Shorten-compressed audio data",
76 "Ryan C. Gordon <icculus@clutteredmind.org>", 77 "Ryan C. Gordon <icculus@clutteredmind.org>",
77 "http://www.icculus.org/SDL_sound/" 78 "http://www.icculus.org/SDL_sound/"
78 }, 79 },
79 80
80 SHN_init, /* init() method */ 81 SHN_init, /* init() method */
81 SHN_quit, /* quit() method */ 82 SHN_quit, /* quit() method */
82 SHN_open, /* open() method */ 83 SHN_open, /* open() method */
83 SHN_close, /* close() method */ 84 SHN_close, /* close() method */
84 SHN_read /* read() method */ 85 SHN_read, /* read() method */
86 SHN_rewind /* rewind() method */
85 }; 87 };
86 88
87 89
88 #define SHN_BUFSIZ 512 90 #define SHN_BUFSIZ 512
89 91
1294 } /* while */ 1296 } /* while */
1295 1297
1296 return(retval); 1298 return(retval);
1297 } /* SHN_read */ 1299 } /* SHN_read */
1298 1300
1301
1302 static int SHN_rewind(Sound_Sample *sample)
1303 {
1304 /* !!! FIXME. */
1305 SNDDBG(("SHN_rewind(): Write me!\n"));
1306 assert(0);
1307 return(0);
1308 } /* SHN_rewind */
1309
1299 #endif /* defined SOUND_SUPPORTS_SHN */ 1310 #endif /* defined SOUND_SUPPORTS_SHN */
1300 1311
1301 /* end of shn.c ... */ 1312 /* end of shn.c ... */
1302 1313