Control: tags -1 patch upstream Hi,
On 16/07/17 07:14, Diogo Martins Silva wrote: > Package: osmose-emulator > Version: 1.0-4 > Severity: important > > Dear Maintainer, > > Emulator correctly plays games, except with no sound. > > Relevant Log entry: > > cannot open audio device : plughw:0,0No such file or > directory > > I don't use plugged in sound card, just a regular laptop hardware sound card. The attached patch might work by switching the ALSA device to "default". Could you rebuild osmose-emulator and test it? In this context "plughw:0,0" refers to passing the sound to the first soundcard on the first device, after doing any necessary rate conversion. This is bad because: - It hardcodes the device (which as you found, may not even exist) - It is incompatible with PulseAudio Thanks, James
diff -ur a/osmose/OsmoseCore.cpp b/osmose/OsmoseCore.cpp --- a/osmose/OsmoseCore.cpp 2016-08-12 05:56:04.000000000 +0100 +++ b/osmose/OsmoseCore.cpp 2017-07-16 12:54:16.178464325 +0100 @@ -111,7 +111,7 @@ { try { - sndThread = new SoundThread("plughw:0,0", p->getFIFOSoundBuffer()); + sndThread = new SoundThread("default", p->getFIFOSoundBuffer()); sndThread->start(); // Start thread, not playing ! string msg = "Creating SoundThread"; QLogWindow::getInstance()->appendLog(msg);
signature.asc
Description: OpenPGP digital signature