mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
Move Notification sounds into CNotificationPlayer
This commit is contained in:
committed by
Mat Sutcliffe
parent
77a8c46790
commit
d5b3a336dd
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user