1 #ifndef _AUDIOAUDBUF__H_
2 #define _AUDIOAUDBUF__H_
6 #include "audio_def.hpp"
9 _AUDIO_NAMESPACE_START_
19 unsigned int bytes_played_;
32 audio_producer ( ) : bytes_played_( 0 )
47 virtual ~audio_producer( void )
58 //reads N bytes from the buffer
59 virtual unsigned int read( BYTE *, unsigned int ) = 0;
61 virtual bool finished ( void ) = 0;
66 unsigned int bytes_played( void ) const
72 void set_position( unsigned int pos )
77 void set_position_start( void )
84 void forward( unsigned int bytes )
86 bytes_played_ += bytes ;
90 void backward( unsigned int bytes )
92 bytes_played_ += bytes ;
95 void ( * play_finished )( void );
105 _AUDIO_NAMESPACE_END_
112 #endif //ifdef _AUDIOAUDBUF__H_