SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <audioinput.h>
Inherits QIODevice.
Public Member Functions | |
AudioInput () | |
virtual | ~AudioInput () |
bool | start (int device, int rate) |
void | stop () |
void | addFifo (AudioFifo *audioFifo) |
void | removeFifo (AudioFifo *audioFifo) |
int | getNbFifos () const |
uint | getRate () const |
void | setOnExit (bool onExit) |
void | setVolume (float volume) |
Private Member Functions | |
virtual qint64 | readData (char *data, qint64 maxLen) |
virtual qint64 | writeData (const char *data, qint64 len) |
Private Attributes | |
QMutex | m_mutex |
QAudioInput * | m_audioInput |
uint | m_audioUsageCount |
bool | m_onExit |
float | m_volume |
std::list< AudioFifo * > | m_audioFifos |
std::vector< qint32 > | m_mixBuffer |
QAudioFormat | m_audioFormat |
Friends | |
class | AudioOutputPipe |
Definition at line 33 of file audioinput.h.
AudioInput::AudioInput | ( | ) |
Definition at line 25 of file audioinput.cpp.
|
virtual |
Definition at line 35 of file audioinput.cpp.
References m_audioFifos, m_mutex, and stop().
void AudioInput::addFifo | ( | AudioFifo * | audioFifo | ) |
Definition at line 142 of file audioinput.cpp.
References m_audioFifos, and m_mutex.
Referenced by FCDProPlusInput::openFCDAudio(), and FCDProInput::openFCDAudio().
|
inline |
Definition at line 43 of file audioinput.h.
|
inline |
Definition at line 45 of file audioinput.h.
Referenced by FCDProPlusInput::openFCDAudio(), FCDProInput::openFCDAudio(), and AudioDeviceManager::setInputDeviceInfo().
|
privatevirtual |
Definition at line 156 of file audioinput.cpp.
void AudioInput::removeFifo | ( | AudioFifo * | audioFifo | ) |
Definition at line 149 of file audioinput.cpp.
References m_audioFifos, and m_mutex.
Referenced by FCDProPlusInput::closeFCDAudio(), and FCDProInput::closeFCDAudio().
|
inline |
Definition at line 46 of file audioinput.h.
|
inline |
Definition at line 47 of file audioinput.h.
Referenced by AudioDeviceManager::setInputDeviceInfo().
bool AudioInput::start | ( | int | device, |
int | rate | ||
) |
Definition at line 49 of file audioinput.cpp.
References m_audioFormat, m_audioInput, m_audioUsageCount, m_mutex, and m_volume.
Referenced by FCDProPlusInput::openFCDAudio(), FCDProInput::openFCDAudio(), and AudioDeviceManager::setInputDeviceInfo().
void AudioInput::stop | ( | ) |
Definition at line 121 of file audioinput.cpp.
References m_audioInput, m_audioUsageCount, m_mutex, and m_onExit.
Referenced by FCDProPlusInput::closeFCDAudio(), FCDProInput::closeFCDAudio(), AudioDeviceManager::setInputDeviceInfo(), and ~AudioInput().
|
privatevirtual |
|
friend |
Definition at line 65 of file audioinput.h.
|
private |
Definition at line 56 of file audioinput.h.
Referenced by addFifo(), removeFifo(), writeData(), and ~AudioInput().
|
private |
Definition at line 59 of file audioinput.h.
Referenced by start(), and writeData().
|
private |
Definition at line 51 of file audioinput.h.
|
private |
Definition at line 52 of file audioinput.h.
|
private |
Definition at line 57 of file audioinput.h.
|
private |
Definition at line 50 of file audioinput.h.
Referenced by addFifo(), removeFifo(), start(), stop(), and ~AudioInput().
|
private |
Definition at line 53 of file audioinput.h.
Referenced by stop().
|
private |
Definition at line 54 of file audioinput.h.
Referenced by start().