From: <tom...@us...> - 2003-05-23 14:46:46
|
Update of /cvsroot/alpp/openalpp/include/openalpp In directory sc8-pr-cvs1:/tmp/cvs-serv27260 Modified Files: filestream.h filestreamupdater.h Log Message: Added support for looping file streams. Index: filestream.h =================================================================== RCS file: /cvsroot/alpp/openalpp/include/openalpp/filestream.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** filestream.h 16 Apr 2003 11:15:01 -0000 1.4 --- filestream.h 23 May 2003 14:46:43 -0000 1.5 *************** *** 58,61 **** --- 58,67 ---- FileStream &operator=(const FileStream &stream); + + /** + * Turn on/off looping. + * @param loop is true if the stream should loop, false otherwise. + */ + void SetLooping(bool loop = true); }; Index: filestreamupdater.h =================================================================== RCS file: /cvsroot/alpp/openalpp/include/openalpp/filestreamupdater.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** filestreamupdater.h 16 Apr 2003 12:16:43 -0000 1.3 --- filestreamupdater.h 23 May 2003 14:46:43 -0000 1.4 *************** *** 41,44 **** --- 41,45 ---- OggVorbis_File *oggfile_; // The file structure unsigned int buffersize_; // Size of the buffer in bytes + bool looping_; // Are we looping or not? public: /** *************** *** 66,69 **** --- 67,76 ---- */ OPENALPP_API void run(); + + /** + * Turn on/off looping. + * @param loop is true if the stream should loop, false otherwise. + */ + void SetLooping(bool loop = true); }; |