Babel
Epitech's C++ VoIP project
|
Audio Module Interface. More...
#include <IAudioManager.hpp>
Public Member Functions | |
virtual int32_t | getInputChannelsNumber () const =0 |
get the number of channels of Input Device for future streams More... | |
virtual int32_t | getOutputChannelsNumber () const =0 |
get the number of channels of Output Device for future streams More... | |
virtual void | setOutputChannelsNumber (int32_t)=0 |
set the number of channels of Output for future streams More... | |
virtual void | setInputChannelsNumber (int32_t)=0 |
set the number of channels of Output for future streams More... | |
virtual void | setSampleRate (int32_t)=0 |
set the samplerate for future streams More... | |
virtual int32_t | getSampleRate () const =0 |
get the current samplerate More... | |
virtual int32_t | getRecordTime () const =0 |
get the record time for readStreams More... | |
virtual void | setRecordTime (int32_t)=0 |
get the record time for readStreams More... | |
virtual int32_t | getFramesPerBuffer () const =0 |
get the frame per buffer value for readStreams More... | |
virtual void | setFramesPerBuffer (int32_t)=0 |
get the frame per buffer for readStreams More... | |
virtual void | openStream ()=0 |
Open stream to input and output sounds. More... | |
virtual void | startStream ()=0 |
Start a stream. More... | |
virtual void | stopStream ()=0 |
Stop a stream. More... | |
virtual void | closeStream ()=0 |
Close current stream. More... | |
virtual std::vector< int16_t > | readStream ()=0 |
Read an array of int16_t from current stream. More... | |
virtual void | writeStream (std::vector< int16_t > &)=0 |
Write an array of int16_t to current stream. More... | |
virtual | ~IAudioManager ()=default |
virtual destructor More... | |
Audio Module Interface.
|
virtualdefault |
virtual destructor
|
pure virtual |
Close current stream.
Implemented in Babel::PortAudio.
|
pure virtual |
get the frame per buffer value for readStreams
Implemented in Babel::PortAudio.
|
pure virtual |
get the number of channels of Input Device for future streams
Implemented in Babel::PortAudio.
|
pure virtual |
get the number of channels of Output Device for future streams
Implemented in Babel::PortAudio.
|
pure virtual |
get the record time for readStreams
Implemented in Babel::PortAudio.
|
pure virtual |
get the current samplerate
Implemented in Babel::PortAudio.
|
pure virtual |
Open stream to input and output sounds.
Implemented in Babel::PortAudio.
|
pure virtual |
Read an array of int16_t from current stream.
Implemented in Babel::PortAudio.
|
pure virtual |
get the frame per buffer for readStreams
Implemented in Babel::PortAudio.
|
pure virtual |
set the number of channels of Output for future streams
Implemented in Babel::PortAudio.
|
pure virtual |
set the number of channels of Output for future streams
Implemented in Babel::PortAudio.
|
pure virtual |
get the record time for readStreams
Implemented in Babel::PortAudio.
|
pure virtual |
set the samplerate for future streams
Implemented in Babel::PortAudio.
|
pure virtual |
Start a stream.
Implemented in Babel::PortAudio.
|
pure virtual |
Stop a stream.
Implemented in Babel::PortAudio.
|
pure virtual |
Write an array of int16_t to current stream.
Implemented in Babel::PortAudio.