mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 15:13:30 +02:00
Make slot declarations non-conditional
This commit is contained in:
parent
a91118027d
commit
a2f6548d1d
2 changed files with 4 additions and 4 deletions
libraries/audio-client/src
|
@ -1587,8 +1587,8 @@ bool AudioClient::switchInputToAudioDevice(const QAudioDeviceInfo inputDeviceInf
|
|||
return supportedFormat;
|
||||
}
|
||||
|
||||
#if defined(Q_OS_ANDROID)
|
||||
void AudioClient::audioInputStateChanged(QAudio::State state) {
|
||||
#if defined(Q_OS_ANDROID)
|
||||
switch (state) {
|
||||
case QAudio::StoppedState:
|
||||
if (!_audioInput) {
|
||||
|
@ -1609,16 +1609,18 @@ void AudioClient::audioInputStateChanged(QAudio::State state) {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void AudioClient::checkInputTimeout() {
|
||||
#if defined(Q_OS_ANDROID)
|
||||
if (_audioInput && _inputReadsSinceLastCheck < MIN_READS_TO_CONSIDER_INPUT_ALIVE) {
|
||||
_audioInput->stop();
|
||||
} else {
|
||||
_inputReadsSinceLastCheck = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void AudioClient::outputNotify() {
|
||||
int recentUnfulfilled = _audioOutputIODevice.getRecentUnfulfilledReads();
|
||||
|
|
|
@ -182,10 +182,8 @@ public slots:
|
|||
|
||||
void sendDownstreamAudioStatsPacket() { _stats.publish(); }
|
||||
void handleMicAudioInput();
|
||||
#if defined(Q_OS_ANDROID)
|
||||
void audioInputStateChanged(QAudio::State state);
|
||||
void checkInputTimeout();
|
||||
#endif
|
||||
void handleDummyAudioInput();
|
||||
void handleRecordedAudioInput(const QByteArray& audio);
|
||||
void reset();
|
||||
|
|
Loading…
Reference in a new issue