check sound when changing sound card

Signed-off-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
This commit is contained in:
Nicolas Adenis-Lamarre
2019-05-04 23:24:12 +02:00
parent a6590bb6d3
commit 520d77fd98
3 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -31,6 +31,7 @@
#include <fstream>
#include <SDL.h>
#include <Sound.h>
#if defined(WIN32)
#define popen _popen
@@ -857,7 +858,7 @@ bool ApiSystem::setAudioOutputDevice(std::string selected) {
VolumeControl::getInstance()->init();
AudioManager::getInstance()->init();
//AudioManager::getInstance()->playCheckSound();
Sound::get("/usr/share/emulationstation/resources/checksound.ogg")->play();
return exitcode == 0;
}
-2
View File
@@ -27,8 +27,6 @@
#include "LocaleES.h"
#include <SystemConf.h>
#include "ApiSystem.h"
#include "AudioManager.h"
#include "VolumeControl.h"
#include "NetworkThread.h"
#include <FreeImage.h>
BIN
View File
Binary file not shown.