#include <channel.h>
Inheritance diagram for channel:
Public Methods | |
virtual | ~channel () throw () |
virtual bool | is_terminated () const=0 throw () |
is the track terminated ? | |
virtual bool | append_data (chunck &b, int size)=0 throw (std::exception) |
appends coded sound data to the track. | |
virtual int | available_sound_data () const=0 throw () |
get the number of samples currently available in the channel. | |
virtual void | read_sound_data (short *sound_buffer, int size)=0 throw (std::exception) |
read some sound data from the channel. | |
virtual bool | set_parameters (int, int, int, int)=0 throw (std::exception) |
debugging do not use. | |
virtual bool | check_parameters (int, int, int, int, int)=0 throw (std::exception) |
debugging do not use. |
This is the interface for sound channels.
Definition at line 46 of file channel.h.
|
|
|
appends coded sound data to the track. This method is called by the player from time to time when new data is available for the track.
Implemented in saud_channel, and imuse_channel. Referenced by player::handleImuseBuffer(), and player::handleSoundBuffer(). |
|
get the number of samples currently available in the channel. This method is called by the mixer from time to time to get the current number of samples available.
Implemented in saud_channel, and imuse_channel. |
|
debugging do not use. This method is called by player to perform integrity check on the unknown parameters in the chuncks. There is no real other point than to check a few assertions in using this method. Implemented in saud_channel, and imuse_channel. Referenced by player::handleImuseBuffer(), and player::handleSoundBuffer(). |
|
is the track terminated ? This method is called by the mixer from time to time to check if the track is terminated.
Implemented in saud_channel, and imuse_channel. |
|
read some sound data from the channel. This method is called by the mixer from time to time to get the current number of samples available.
Implemented in saud_channel, and imuse_channel. |
|
debugging do not use. This method is called by player to perform integrity check on the unknown parameters in the chuncks. There is no real other point than to check a few assertions in using this method. Implemented in saud_channel, and imuse_channel. Referenced by player::handleImuseBuffer(), and player::handleSoundBuffer(). |