mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Improved samples and debugging information
* DBus test for CSimulatedAircraft * Output of metatypes in GUI/core * Changed output from qDebug() to QTextStream * Variant test for CSimulatedAircraft
This commit is contained in:
@@ -500,19 +500,18 @@ namespace BlackSound
|
||||
if (removeFileAfterPlaying) BlackMisc::CFileDeleter::addFileForDeletion(file);
|
||||
}
|
||||
|
||||
void CSoundGenerator::printAllQtSoundDevices()
|
||||
void CSoundGenerator::printAllQtSoundDevices(QTextStream &out)
|
||||
{
|
||||
QTextStream qtout(stdout);
|
||||
qtout << "output" << endl;
|
||||
out << "output:" << endl;
|
||||
foreach(QAudioDeviceInfo qd, QAudioDeviceInfo::availableDevices(QAudio::AudioOutput))
|
||||
{
|
||||
qtout << qd.deviceName() << endl;
|
||||
out << qd.deviceName() << endl;
|
||||
}
|
||||
|
||||
qtout << "input" << endl;
|
||||
out << "input:" << endl;
|
||||
foreach(QAudioDeviceInfo qd, QAudioDeviceInfo::availableDevices(QAudio::AudioInput))
|
||||
{
|
||||
qtout << qd.deviceName() << endl;
|
||||
out << qd.deviceName() << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace BlackSound
|
||||
static void playNotificationSound(qint32 volume, CNotificationSounds::Notification notification);
|
||||
|
||||
//! For debugging purposes
|
||||
void static printAllQtSoundDevices();
|
||||
void static printAllQtSoundDevices(QTextStream &qtout = QTextStream(stdout));
|
||||
|
||||
signals:
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user