19 #ifndef INCLUDE_AUDIOOUTPUT_H 20 #define INCLUDE_AUDIOOUTPUT_H 24 #include <QAudioFormat> 32 class AudioOutputPipe;
58 bool start(
int device,
int rate);
65 unsigned int getRate()
const {
return m_audioFormat.sampleRate(); }
68 void setUdpDestination(
const QString& address,
uint16_t port);
69 void setUdpCopyToUDP(
bool copyToUDP);
70 void setUdpUseRTP(
bool useRTP);
72 void setUdpChannelFormat(
UDPChannelCodec udpChannelCodec,
bool stereo,
int sampleRate);
91 virtual qint64 readData(
char* data, qint64 maxLen);
92 virtual qint64 writeData(
const char* data, qint64 len);
94 friend class AudioOutputPipe;
97 #endif // INCLUDE_AUDIOOUTPUT_H QAudioFormat m_audioFormat
int decimation(float Fin, float Fout)
unsigned int getRate() const
QAudioOutput * m_audioOutput
std::list< AudioFifo * > m_audioFifos
AudioNetSink * m_audioNetSink
std::vector< qint32 > m_mixBuffer
void setOnExit(bool onExit)
UDPChannelCodec m_udpChannelCodec
UDPChannelMode m_udpChannelMode