Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

sound_renderer Class Reference

interface for sound output More...

#include <renderer.h>

Inheritance diagram for sound_renderer:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~sound_renderer ()
virtual bool init (int frequency, bool stereo)=0
 sound output initialisation

virtual bool write (unsigned short *ptr, int size)=0
 sound data output

virtual bool stop ()=0
 stop sound output


Detailed Description

interface for sound output

This is the interface for sound output. Only one implementation is available right now : ds_wave_out

Definition at line 38 of file renderer.h.


Constructor & Destructor Documentation

virtual sound_renderer::~sound_renderer   [inline, virtual]
 

Definition at line 40 of file renderer.h.


Member Function Documentation

virtual bool sound_renderer::init int    frequency,
bool    stereo
[pure virtual]
 

sound output initialisation

This is called by the mixer when initialisation has to be performed.

Parameters:
frequency  is always 22050 right now.
stereo  is true if the sound output should be stereo (always true right now)
Returns:
true if initialisation was ok, false otherwise

Implemented in ds_wave_out.

virtual bool sound_renderer::stop   [pure virtual]
 

stop sound output

This is called by the mixer when sound output should be stopped.

Returns:
true if everything went fine, false otherwise

Implemented in ds_wave_out.

virtual bool sound_renderer::write unsigned short *    ptr,
int    size
[pure virtual]
 

sound data output

This is called by the mixer to put data to the output.

Parameters:
ptr  buffer containing samples.
size  size of the ptr buffer, in samples (i.e. size in byte / 2)
Returns:
true if everything went fine, false otherwise

Implemented in ds_wave_out.


The documentation for this class was generated from the following file:
Generated on Fri Aug 9 22:54:33 2002 for san_player by doxygen1.2.16