Photon C++ Client API
5.0.7.3
|
IAudioPusher that provides a constant tone signal. More...
Public Member Functions | |
ToneAudioPusher (int frequency=440, int bufSizeMs=100, int samplingRate=44100, int channels=2) | |
Create a new ToneAudioPusher instance More... | |
virtual int | getSamplingRate (void) const |
Sampling rate of the audio signal (in Hz). More... | |
virtual int | getChannels (void) const |
Number of channels in the audio signal. More... | |
virtual Common::JString | getError (void) const |
If not an empty string, then the audio object is in invalid state. More... | |
virtual void | setCallback (void *pLocalVoice, void(*pCallback)(void *, const Buffer< T > &)) |
Set the callback function used for pushing data More... | |
virtual Common::JString & | toString (Common::JString &retStr, bool withTypes=false) const |
Public Member Functions inherited from ToString | |
virtual | ~ToString (void) |
virtual JString | typeToString (void) const |
JString | toString (bool withTypes=false) const |
IAudioPusher that provides a constant tone signal.
ToneAudioPusher | ( | int | frequency = 440 , |
int | bufSizeMs = 100 , |
||
int | samplingRate = 44100 , |
||
int | channels = 2 |
||
) |
Create a new ToneAudioPusher instance
frequency | Frequency of the generated tone (in Hz). |
bufSizeMs | Size of buffers to push (in milliseconds). |
samplingRate | Sampling rate of the audio signal (in Hz). |
channels | Number of channels in the audio signal. |
|
virtual |
Sampling rate of the audio signal (in Hz).
Implements IAudioDesc.
|
virtual |
Number of channels in the audio signal.
Implements IAudioDesc.
|
virtual |
If not an empty string, then the audio object is in invalid state.
Implements IAudioDesc.
|
virtual |
Set the callback function used for pushing data
pLocalVoice | Outgoing audio stream, for context |
pCallback | Callback function to use |
Implements IAudioPusher< T >.
|
virtual |
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
Implements ToString.