# HG changeset patch # User Ryan C. Gordon # Date 1021877723 0 # Node ID a7c1dbcf5e0052baad3b905b962d0cb6055ca75f # Parent aa7f6a1109716fe45ec4468ae4214ecfbdead250 Added a seek method stub. diff -r aa7f6a110971 -r a7c1dbcf5e00 decoders/quicktime.c --- a/decoders/quicktime.c Mon May 20 06:46:43 2002 +0000 +++ b/decoders/quicktime.c Mon May 20 06:55:23 2002 +0000 @@ -73,6 +73,7 @@ static void QT_close(Sound_Sample *sample); static Uint32 QT_read(Sound_Sample *sample); static int QT_rewind(Sound_Sample *sample); +static int QT_seek(Sound_Sample *sample, Uint32 ms); #define QT_MAX_INPUT_BUFFER (32*1024) /* Maximum size of internal buffer (internal->buffer_size) */ @@ -86,12 +87,13 @@ "http://www.icculus.org/SDL_sound/" }, - QT_init, /* init() method */ - QT_quit, /* quit() method */ - QT_open, /* open() method */ - QT_close, /* close() method */ - QT_read, /* read() method */ - QT_rewind /* rewind() method */ + QT_init, /* init() method */ + QT_quit, /* quit() method */ + QT_open, /* open() method */ + QT_close, /* close() method */ + QT_read, /* read() method */ + QT_rewind, /* rewind() method */ + QT_seek /* seek() method */ }; typedef struct { @@ -577,6 +579,14 @@ } /* QT_rewind */ + +static int QT_seek(Sound_Sample *sample, Uint32 ms) +{ + /* !!! FIXME: Implement this! */ + return(0); +} /* QT_seek */ + + #endif /* SOUND_SUPPORTS_QUICKTIME */ /* end of quicktime.c ... */