Move Notification sounds into CNotificationPlayer

This commit is contained in:
Roland Rossgotterer
2019-03-05 15:18:16 +01:00
committed by Mat Sutcliffe
parent 77a8c46790
commit d5b3a336dd
8 changed files with 128 additions and 74 deletions

View File

@@ -158,11 +158,6 @@ namespace BlackSound
//! \param removeFileAfterPlaying delete the file, after it has been played
static void playFile(int volume, const QString &file, bool removeFileAfterPlaying);
//! Play notification
//! \param volume 0-100
//! \param notification
static void playNotificationSound(int volume, BlackMisc::Audio::CNotificationSounds::NotificationFlag notification);
//! For debugging purposes
static void printAllQtSoundDevices(QTextStream &qtout);
@@ -243,13 +238,6 @@ namespace BlackSound
DataHeader data;
};
//! "My" media player
static QMediaPlayer *mediaPlayer()
{
static QMediaPlayer *mediaPlayer = new QMediaPlayer();
return mediaPlayer;
}
//! Duration of these tones
static qint64 calculateDurationMs(const QList<Tone> &tones);