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 (char *myname) | |
| the OutChannel class constructor | |
| virtual | ~OutChannel () |
| the OutChannel class destructor | |
| int | create_ice () |
| Create a Shouter instance. | |
| bool | delete_ice (int iceid) |
| delete a Shouter with ID | |
| Shouter * | get_ice (int iceid) |
| get a Shouter instance with ID | |
| bool | apply_ice (int iceid) |
| Applica la configurazione corrente. | |
| bool | connect_ice (int iceid, bool on) |
| Connette o disconnette il server ID a seconda del flag. | |
| INT_SET (bps, _bps) | |
| Kbit/s. | |
| INT_SET (freq, _freq) | |
| samplerate in Hz | |
| INT_SET (channels, _channels) | |
| channels (1 is mono, 2 is stereo) | |
| FLOAT_SET (quality, _quality) | |
| VALUE from 0.1 to 9.0. | |
| INT_SET (lowpass, _lowpass) | |
| lowpass in Hz | |
| INT_SET (highpass, _highpass) | |
| highpass in Hz | |
| char * | guess_bps () |
| setup the bps encoder value | |
| unsigned int | get_bitrate () |
| get the size of encoded audio in bytes | |
| bool | dump_start (char *file) |
| Start encoding to a file. | |
| bool | dump_stop () |
| Stop encoding to a file. | |
Variables | |
| char | name [128] |
| name string of the encoder type (read only) | |
| char | version [128] |
| version string of the encoder type (read only) | |
| enum codec | tipo |
| codec type (read only) | |
| bool | quit |
| set to true to exit the OutChannel thread | |
| bool | running |
| if true the OutChannel thread is running (read only) | |
| bool | initialized |
| if true all buffers have been allocated (read only) | |
| Linklist | icelist |
| the Linklist of Shouter instances | |
| char | quality_desc [256] |
| string rendered to describe the quality of encoding | |
| FILE * | fd |
| if non-zero a file is opened for dumping | |
| char | fd_name [MAX_PATH_SIZE] |
| full path filename for dumping | |
|
|
Applica la configurazione corrente. Se gia' connesso, resta connesso
Definition at line 254 of file outchannels.cpp. |
|
||||||||||||
|
Connette o disconnette il server ID a seconda del flag.
Definition at line 267 of file outchannels.cpp. |
|
|
Create a Shouter instance.
Definition at line 190 of file outchannels.cpp. |
|
|
delete a Shouter with ID
Definition at line 230 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 317 of file outchannels.cpp. |
|
|
Stop encoding to a file.
Definition at line 348 of file outchannels.cpp. |
|
|
get the size of encoded audio in bytes
Definition at line 201 of file outchannels.h. |
|
|
get a Shouter instance with ID
Definition at line 250 of file outchannels.cpp. |
|
|
setup the bps encoder value This method is used internally by the apply_profile() It 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 399 of file outchannels.cpp. |
|
|
the OutChannel class constructor
Definition at line 61 of file outchannels.cpp. |
|
|
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. |
1.3