| - -( dyne // software :: culture :: events :: planet :: discussion :: museum \\ freaknet )- - |
OutChannel offers you:
uniformed settings for the parameters of each codec:
methods to create instances of the Shouter class (*_ice)
methods to start/stop the file dumping of the encoded audio to a certain file.
The codec parameters are declared thru defines like INT_SET or CHAR_SET or FLOAT_SET: they basically define two overloaded functions to set and get the named parameter.
Functions | |
| OutChannel::OutChannel (char *myname) | |
| the OutChannel class constructor | |
| virtual | OutChannel::~OutChannel () |
| the OutChannel class destructor | |
| int | OutChannel::create_ice () |
| Create a Shouter instance. | |
| bool | OutChannel::delete_ice (int iceid) |
| delete a Shouter with ID | |
| Shouter * | OutChannel::get_ice (int iceid) |
| get a Shouter instance with ID | |
| bool | OutChannel::apply_ice (int iceid) |
| Applica la configurazione corrente. | |
| bool | OutChannel::connect_ice (int iceid, bool on) |
| Connette o disconnette il server ID a seconda del flag. | |
| OutChannel::INT_SET (bps, _bps) | |
| Kbit/s. | |
| OutChannel::INT_SET (freq, _freq) | |
| samplerate in Hz | |
| OutChannel::INT_SET (channels, _channels) | |
| channels (1 is mono, 2 is stereo) | |
| OutChannel::INT_SET (lowpass, _lowpass) | |
| lowpass in Hz | |
| OutChannel::INT_SET (highpass, _highpass) | |
| highpass in Hz | |
| char * | OutChannel::quality (float in) |
| setup quality (wraps most useful modes) | |
| unsigned int | OutChannel::get_bitrate () |
| get the size of encoded audio in bytes | |
| bool | OutChannel::dump_start (char *file) |
| Start encoding to a file. | |
| bool | OutChannel::dump_stop () |
| Stop encoding to a file. | |
Variables | |
| char | OutChannel::name [128] |
| name string of the encoder type (read only) | |
| char | OutChannel::version [128] |
| version string of the encoder type (read only) | |
| enum codec | OutChannel::tipo |
| codec type (read only) | |
| bool | OutChannel::quit |
| set to true to exit the OutChannel thread | |
| bool | OutChannel::running |
| if true the OutChannel thread is running (read only) | |
| bool | OutChannel::initialized |
| if true all buffers have been allocated (read only) | |
| Linklist | OutChannel::icelist |
| the Linklist of Shouter instances | |
| float | OutChannel::_quality |
| char | OutChannel::quality_desc [256] |
| string rendered to describe the quality of encoding | |
| FILE * | OutChannel::fd |
| if non-zero a file is opened for dumping | |
| char | OutChannel::fd_name [MAX_PATH_SIZE] |
| full path filename for dumping | |
|
|
Applica la configurazione corrente. Se gia' connesso, resta connesso
Definition at line 255 of file outchannels.cpp. |
|
||||||||||||
|
Connette o disconnette il server ID a seconda del flag.
Definition at line 268 of file outchannels.cpp. |
|
|
Create a Shouter instance.
Definition at line 191 of file outchannels.cpp. |
|
|
delete a Shouter with ID
Definition at line 231 of file outchannels.cpp. |
|
|
Start encoding to a file. Starts to dump the encoded audio inside a local file. If the file is allready existing, it creates a new one with a slightly different name, without overwriting. If it was allready dumping, it keeps on: to change the filename to another file you must stop and then restart.
Definition at line 318 of file outchannels.cpp. |
|
|
Stop encoding to a file.
Definition at line 349 of file outchannels.cpp. |
|
|
get the size of encoded audio in bytes
Definition at line 196 of file outchannels.h. |
|
|
get a Shouter instance with ID
Definition at line 251 of file outchannels.cpp. |
|
||||||||||||
|
highpass in Hz
|
|
||||||||||||
|
lowpass in Hz
|
|
||||||||||||
|
channels (1 is mono, 2 is stereo)
|
|
||||||||||||
|
samplerate in Hz
|
|
||||||||||||
|
Kbit/s.
|
|
|
the OutChannel class constructor
Definition at line 61 of file outchannels.cpp. |
|
|
setup quality (wraps most useful modes) This method guesses the bps and samplerate parameters of the encoder from quality value, then it renders the quality_desc string with a human readable description of the setting. You can internally tweak this function to modify the mapping of quality values to bps and samplerate.
Definition at line 401 of file outchannels.cpp. |
|
|
the OutChannel class destructor
Definition at line 93 of file outchannels.cpp. |
|
|
Definition at line 189 of file outchannels.h. |
|
|
if non-zero a file is opened for dumping
Definition at line 222 of file outchannels.h. |
|
|
full path filename for dumping
Definition at line 223 of file outchannels.h. |
|
|
the Linklist of Shouter instances This is directly accessible: position operations on the Linklist class are thread safe. Definition at line 156 of file outchannels.h. |
|
|
if true all buffers have been allocated (read only)
Definition at line 106 of file outchannels.h. |
|
|
name string of the encoder type (read only)
Definition at line 100 of file outchannels.h. |
|
|
string rendered to describe the quality of encoding
Definition at line 190 of file outchannels.h. |
|
|
set to true to exit the OutChannel thread
Definition at line 104 of file outchannels.h. |
|
|
if true the OutChannel thread is running (read only)
Definition at line 105 of file outchannels.h. |
|
|
codec type (read only)
Definition at line 102 of file outchannels.h. |
|
|
version string of the encoder type (read only)
Definition at line 101 of file outchannels.h. |
|
|
|
|
| Copyleft 2000 - 2008 dyne.org foundation and respective authors. Verbatim copying and distribution is permitted in any medium, provided this notice is preserved. Send inquiries & questions to dyne.org's hackers. |
|