ReactOS  0.4.13-dev-464-g6b95727
audio_producer Class Referenceabstract

#include <audio_producer.hpp>

Inheritance diagram for audio_producer:
Collaboration diagram for audio_producer:

Public Member Functions

 audio_producer ()
 
virtual ~audio_producer (void)
 
virtual unsigned int read (BYTE *, unsigned int)=0
 
virtual bool finished (void)=0
 
unsigned int bytes_played (void) const
 
void set_position (unsigned int pos)
 
void set_position_start (void)
 
void forward (unsigned int bytes)
 
void backward (unsigned int bytes)
 

Public Attributes

void(* play_finished )(void)
 

Protected Attributes

unsigned int bytes_played_
 

Detailed Description

Definition at line 15 of file audio_producer.hpp.

Constructor & Destructor Documentation

◆ audio_producer()

audio_producer::audio_producer ( )
inline

Definition at line 22 of file audio_producer.hpp.

23  {
24  }
unsigned int bytes_played_
void(* play_finished)(void)

◆ ~audio_producer()

virtual audio_producer::~audio_producer ( void  )
inlinevirtual

Definition at line 27 of file audio_producer.hpp.

28  {
29  }

Member Function Documentation

◆ backward()

void audio_producer::backward ( unsigned int  bytes)
inline

Definition at line 58 of file audio_producer.hpp.

59  {
61  }
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
unsigned int bytes_played_

◆ bytes_played()

unsigned int audio_producer::bytes_played ( void  ) const
inline

Definition at line 38 of file audio_producer.hpp.

39  {
40  return bytes_played_;
41  }
unsigned int bytes_played_

◆ finished()

virtual bool audio_producer::finished ( void  )
pure virtual

Implemented in audio_membuffer.

◆ forward()

void audio_producer::forward ( unsigned int  bytes)
inline

Definition at line 53 of file audio_producer.hpp.

54  {
56  }
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
unsigned int bytes_played_

◆ read()

virtual unsigned int audio_producer::read ( BYTE ,
unsigned int   
)
pure virtual

◆ set_position()

void audio_producer::set_position ( unsigned int  pos)
inline

Definition at line 43 of file audio_producer.hpp.

44  {
46  }
unsigned int bytes_played_

◆ set_position_start()

void audio_producer::set_position_start ( void  )
inline

Definition at line 48 of file audio_producer.hpp.

49  {
50  bytes_played_ = 0;
51  }
unsigned int bytes_played_

Referenced by audio_waveout::open(), and audio_waveout::stop().

Member Data Documentation

◆ bytes_played_

unsigned int audio_producer::bytes_played_
protected

◆ play_finished

void(* audio_producer::play_finished) (void)

Definition at line 63 of file audio_producer.hpp.

Referenced by audio_waveout::playing_procedure().


The documentation for this class was generated from the following file: