comparison decoders/quicktime.c @ 328:a7c1dbcf5e00

Added a seek method stub.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 20 May 2002 06:55:23 +0000
parents df024df56996
children 41c650d468c3
comparison
equal deleted inserted replaced
327:aa7f6a110971 328:a7c1dbcf5e00
71 static void QT_quit(void); 71 static void QT_quit(void);
72 static int QT_open(Sound_Sample *sample, const char *ext); 72 static int QT_open(Sound_Sample *sample, const char *ext);
73 static void QT_close(Sound_Sample *sample); 73 static void QT_close(Sound_Sample *sample);
74 static Uint32 QT_read(Sound_Sample *sample); 74 static Uint32 QT_read(Sound_Sample *sample);
75 static int QT_rewind(Sound_Sample *sample); 75 static int QT_rewind(Sound_Sample *sample);
76 static int QT_seek(Sound_Sample *sample, Uint32 ms);
76 77
77 #define QT_MAX_INPUT_BUFFER (32*1024) /* Maximum size of internal buffer (internal->buffer_size) */ 78 #define QT_MAX_INPUT_BUFFER (32*1024) /* Maximum size of internal buffer (internal->buffer_size) */
78 79
79 static const char *extensions_quicktime[] = { "mov", NULL }; 80 static const char *extensions_quicktime[] = { "mov", NULL };
80 const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime = 81 const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime =
84 "QuickTime format", 85 "QuickTime format",
85 "Darrell Walisser <dwaliss1@purdue.edu>", 86 "Darrell Walisser <dwaliss1@purdue.edu>",
86 "http://www.icculus.org/SDL_sound/" 87 "http://www.icculus.org/SDL_sound/"
87 }, 88 },
88 89
89 QT_init, /* init() method */ 90 QT_init, /* init() method */
90 QT_quit, /* quit() method */ 91 QT_quit, /* quit() method */
91 QT_open, /* open() method */ 92 QT_open, /* open() method */
92 QT_close, /* close() method */ 93 QT_close, /* close() method */
93 QT_read, /* read() method */ 94 QT_read, /* read() method */
94 QT_rewind /* rewind() method */ 95 QT_rewind, /* rewind() method */
96 QT_seek /* seek() method */
95 }; 97 };
96 98
97 typedef struct { 99 typedef struct {
98 100
99 ExtendedSoundComponentData compData; 101 ExtendedSoundComponentData compData;
575 577
576 return(QT_rewind_internal(sample)); 578 return(QT_rewind_internal(sample));
577 579
578 } /* QT_rewind */ 580 } /* QT_rewind */
579 581
582
583 static int QT_seek(Sound_Sample *sample, Uint32 ms)
584 {
585 /* !!! FIXME: Implement this! */
586 return(0);
587 } /* QT_seek */
588
589
580 #endif /* SOUND_SUPPORTS_QUICKTIME */ 590 #endif /* SOUND_SUPPORTS_QUICKTIME */
581 591
582 /* end of quicktime.c ... */ 592 /* end of quicktime.c ... */
583 593