comparison decoders/au.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 9828311da44b
children a81976ed5df7
comparison
equal deleted inserted replaced
305:c345a40a8a99 306:c97be6e1bd27
47 static void AU_quit(void); 47 static void AU_quit(void);
48 static int AU_open(Sound_Sample *sample, const char *ext); 48 static int AU_open(Sound_Sample *sample, const char *ext);
49 static void AU_close(Sound_Sample *sample); 49 static void AU_close(Sound_Sample *sample);
50 static Uint32 AU_read(Sound_Sample *sample); 50 static Uint32 AU_read(Sound_Sample *sample);
51 static int AU_rewind(Sound_Sample *sample); 51 static int AU_rewind(Sound_Sample *sample);
52 static int AU_seek(Sound_Sample *sample, Uint32 ms);
52 53
53 /* 54 /*
54 * Sometimes the extension ".snd" is used for these files (mostly on the NeXT), 55 * Sometimes the extension ".snd" is used for these files (mostly on the NeXT),
55 * and the magic number comes from this. However it may clash with other 56 * and the magic number comes from this. However it may clash with other
56 * formats and is somewhat of an anachronism, so only .au is used here. 57 * formats and is somewhat of an anachronism, so only .au is used here.
68 AU_init, /* init() method */ 69 AU_init, /* init() method */
69 AU_quit, /* quit() method */ 70 AU_quit, /* quit() method */
70 AU_open, /* open() method */ 71 AU_open, /* open() method */
71 AU_close, /* close() method */ 72 AU_close, /* close() method */
72 AU_read, /* read() method */ 73 AU_read, /* read() method */
73 AU_rewind /* rewind() method */ 74 AU_rewind, /* rewind() method */
75 AU_seek /* seek() method */
74 }; 76 };
75 77
76 /* no init/deinit needed */ 78 /* no init/deinit needed */
77 static int AU_init(void) 79 static int AU_init(void)
78 { 80 {
314 BAIL_IF_MACRO(rc != dec->start_offset, ERR_IO_ERROR, 0); 316 BAIL_IF_MACRO(rc != dec->start_offset, ERR_IO_ERROR, 0);
315 dec->remaining = dec->total; 317 dec->remaining = dec->total;
316 return(1); 318 return(1);
317 } /* AU_rewind */ 319 } /* AU_rewind */
318 320
321
322 static int AU_seek(Sound_Sample *sample, Uint32 ms)
323 {
324 BAIL_MACRO("!!! FIXME: Not implemented", 0);
325 } /* AU_seek */
326
319 #endif /* SOUND_SUPPORTS_AU */ 327 #endif /* SOUND_SUPPORTS_AU */
320 328