Skip to content

Commit 0943ca6

Browse files
committed
fixup! feat: add sound hardware setting section
1 parent 1c17ab8 commit 0943ca6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/soundio/soundmanager.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,19 @@ QList<QString> SoundManager::getHostAPIList() const {
150150
void SoundManager::closeDevices(bool sleepAfterClosing) {
151151
//qDebug() << "SoundManager::closeDevices()";
152152

153+
#ifdef __LINUX__
153154
bool closed = false;
155+
#else
156+
Q_UNUSED(sleepAfterClosing);
157+
#endif
154158
for (const auto& pDevice : std::as_const(m_devices)) {
155159
if (pDevice->isOpen()) {
156160
// NOTE(rryan): As of 2009 (?) it has been safe to close() a SoundDevice
157161
// while callbacks are active.
158162
pDevice->close();
163+
#ifdef __LINUX__
159164
closed = true;
165+
#endif
160166
}
161167
}
162168

0 commit comments

Comments
 (0)