mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
minor style tweaks
This commit is contained in:
parent
e0cb122abe
commit
fc749880eb
|
@ -32,6 +32,7 @@ void AudioFilterer::closeFilter()
|
||||||
{
|
{
|
||||||
if (filter)
|
if (filter)
|
||||||
kill_filter_audio(filter);
|
kill_filter_audio(filter);
|
||||||
|
filter = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,6 @@ void Core::prepareCall(int friendId, int callId, ToxAv* toxav, bool videoEnabled
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (filterer[callId])
|
|
||||||
delete filterer[callId];
|
delete filterer[callId];
|
||||||
filterer[callId] = nullptr;
|
filterer[callId] = nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -900,11 +900,13 @@ void Settings::setOutDev(const QString& deviceSpecifier)
|
||||||
outDev = deviceSpecifier;
|
outDev = deviceSpecifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Settings::getFilterAudio() const{
|
bool Settings::getFilterAudio() const
|
||||||
|
{
|
||||||
return filterAudio;
|
return filterAudio;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Settings::setFilterAudio(bool newValue){
|
void Settings::setFilterAudio(bool newValue)
|
||||||
|
{
|
||||||
filterAudio = newValue;
|
filterAudio = newValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -197,6 +197,7 @@ void AVForm::onOutDevChanged(const QString& deviceDescriptor)
|
||||||
Audio::openOutput(deviceDescriptor);
|
Audio::openOutput(deviceDescriptor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AVForm::onFilterAudioToggled(bool filterAudio){
|
void AVForm::onFilterAudioToggled(bool filterAudio)
|
||||||
|
{
|
||||||
Settings::getInstance().setFilterAudio(filterAudio);
|
Settings::getInstance().setFilterAudio(filterAudio);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user