Bug#868499: osmose-emulator: No sound

2019-01-06 Thread Carlos Donizete Froes
Hi, 

I agree that the plugdev device is obsolete. Although this is not a concrete
solution, it has been replaced from "plughw" by "default" in
"src/OsmoseCore.cpp".

Changed sound buffer writing method. Thanks to Kevin Joly (Kev-J).

Thanks!

-- 
⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao]
⣾⠁⢠⠒⠀⣿⡁ - https://wiki.debian.org/coringao
⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780
⠈⠳⣄⠀⠀⠀   2157 630B D441 A775 BEFF  D35F FA63 ADA6 B638 B780


signature.asc
Description: This is a digitally signed message part


Bug#868499: osmose-emulator: No sound

2018-12-28 Thread Carlos Donizete Froes
Hi Gianfranco,

> what is then your opinion on this bug?
> can't we just apply the now upstream-proposed patch and upload?
> https://github.com/lutris/osmose/pull/18

I do not think it's a solution replacing 'plughw: 0,0' with 'default'. In my
case, I own an HP model notebook.

= Terminal =

$ lspci |grep Audio
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High
Definition Audio (rev 05)

$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k4.19.0-1-amd64.

$ cat /proc/asound/cards
 0 [MID]: HDA-Intel - HDA Intel MID
  HDA Intel MID at 0xd440 irq 28

$ cat /proc/asound/devices
  2: [ 0- 0]: digital audio playback
  3: [ 0- 0]: digital audio capture
  4: [ 0- 3]: digital audio playback
  5: [ 0- 0]: hardware dependent
  6: [ 0- 3]: hardware dependent
  7: [ 0]   : control
 33:: timer

$ aplay -l
 List of PLAYBACK Hardware Devices 
card 0: MID [HDA Intel MID], device 0: ALC270 Analog [ALC270 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

= End =

Leaving as 'plughw' the sound of the emulator works normally, but if I leave it
as 'default', the sound stops working so I would have to do a manual setup by
adding 'options snd-hda-intel'.

Would not it be nice to have a solution for all sound models to work instead of
switching from six to half a dozen?

Thanks!

-- 
⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao]
⣾⠁⢠⠒⠀⣿⡁ - https://wiki.debian.org/coringao
⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780
⠈⠳⣄⠀⠀⠀   2157 630B D441 A775 BEFF  D35F FA63 ADA6 B638 B780


signature.asc
Description: This is a digitally signed message part


Bug#868499: osmose-emulator: No sound

2018-12-22 Thread Gianfranco Costamagna
On Sun, 09 Sep 2018 20:43:07 -0300 Carlos Donizete Froes  
wrote:
> tags 868499 fixed
> thanks
> 
> Hi,
> 
> In this emulator, the audio device is not compatible with the "pulseaudio".
> 
> Even replacing "plughw:0,0" to "default" device will not work for some 
> ordinary
> laptop hardware sound cards.

what is then your opinion on this bug?
can't we just apply the now upstream-proposed patch and upload?
https://github.com/lutris/osmose/pull/18

G.

> 
> Thanks!
> 
> -- 
> ⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao]
> ⣾⠁⢠⠒⠀⣿⡁ - https://wiki.debian.org/coringao
> ⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780
> ⠈⠳⣄⠀⠀⠀   2157 630B D441 A775 BEFF  D35F FA63 ADA6 B638 B780



Bug#868499: osmose-emulator: No sound

2018-09-09 Thread Carlos Donizete Froes
tags 868499 fixed
thanks

Hi,

In this emulator, the audio device is not compatible with the "pulseaudio".

Even replacing "plughw:0,0" to "default" device will not work for some ordinary
laptop hardware sound cards.

Thanks!

-- 
⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao]
⣾⠁⢠⠒⠀⣿⡁ - https://wiki.debian.org/coringao
⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780
⠈⠳⣄⠀⠀⠀   2157 630B D441 A775 BEFF  D35F FA63 ADA6 B638 B780


signature.asc
Description: This is a digitally signed message part


Bug#868499: osmose-emulator: No sound

2017-10-30 Thread James Cowgill
Hi,

On 30/10/17 07:33, Carlos Donizete Froes wrote:
> Em dom, 2017-10-29 às 10:22 +, James Cowgill escreveu:
>> Did you read my previous email where I explained what the problem was
>> and gave a patch?
> 
> Sorry, I did not pay attention to your explanation. :(
> 
>> The issue is that osmose-emulator opens the "plughw:0,0" device which
>> might not exist and in any case is incompatible with PulseAudio.
> 
> As the emulator is worked in the old configuration with 'alsa', even changing 
> from 'plughw: 0,0' to
> 'default', will not get audio. Only if 'asoundrc' is set.

I think your reasoning is incorrect. The "default" device should already
be setup in the global "/usr/share/alsa/alsa.conf" file so it works even
if asoundrc does not exist. The reason you should use "default" is
because pulseaudio, if installed, will automatically override it for you.

> But I'll work on changing the emulator audio from "alsa" to "pulseaudio".

While that improves the situation, it doesn't fix the fact that running
the emulator "alsa" mode is still broken.

James



signature.asc
Description: OpenPGP digital signature


Bug#868499: osmose-emulator: No sound

2017-10-30 Thread Carlos Donizete Froes
Em dom, 2017-10-29 às 10:22 +, James Cowgill escreveu:
> Did you read my previous email where I explained what the problem was
> and gave a patch?

Sorry, I did not pay attention to your explanation. :(

> The issue is that osmose-emulator opens the "plughw:0,0" device which
> might not exist and in any case is incompatible with PulseAudio.

As the emulator is worked in the old configuration with 'alsa', even changing 
from 'plughw: 0,0' to
'default', will not get audio. Only if 'asoundrc' is set.

But I'll work on changing the emulator audio from "alsa" to "pulseaudio".

> It's still broken in 1.2

As of version 1.3, I will change the emulator audio standard to "pulseaudio".

Thanks!

-- 
⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao]
⣾⠁⢠⠒⠀⣿⡁ - https://wiki.debian.org/coringao
⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780
⠈⠳⣄⠀⠀⠀   2157 630B D441 A775 BEFF  D35F FA63 ADA6 B638 B780

signature.asc
Description: This is a digitally signed message part


Bug#868499: osmose-emulator: No sound

2017-10-29 Thread James Cowgill
Control: tags -1 - moreinfo fixed-upstream

Hi Carlos,

On 29/10/17 04:49, Carlos Donizete Froes wrote:
> tags 868499 + moreinfo + patch fixed-upstream
> thanks
> 
> Hi, Diogo
> 
> From what I understanded, this library missing ALSA (libasound2), could you 
> give
> me more details about what happened?

Did you read my previous email where I explained what the problem was
and gave a patch?

The issue is that osmose-emulator opens the "plughw:0,0" device which
might not exist and in any case is incompatible with PulseAudio.

> I made some improvements in the emulator in version (1.2).

It's still broken in 1.2

Thanks,
James



signature.asc
Description: OpenPGP digital signature


Bug#868499: osmose-emulator: No sound

2017-10-28 Thread Carlos Donizete Froes
tags 868499 + moreinfo + patch fixed-upstream
thanks

Hi, Diogo

From what I understanded, this library missing ALSA (libasound2), could you give
me more details about what happened?

I made some improvements in the emulator in version (1.2).

See more details here[1].

version: 1.2
  * Fixed bug in audio alsa
  * Fixed installation on architectures 'arm'

[1] - https://anonscm.debian.org/cgit/pkg-games/osmose-emulator.git

Thanks!

-- 
⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao]
⣾⠁⢠⠒⠀⣿⡁ - https://wiki.debian.org/coringao
⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780
⠈⠳⣄⠀⠀⠀   2157 630B D441 A775 BEFF  D35F FA63 ADA6 B638 B780

signature.asc
Description: This is a digitally signed message part


Bug#868499: osmose-emulator: No sound

2017-07-16 Thread James Cowgill
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.0 +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


Bug#868499: osmose-emulator: No sound

2017-07-15 Thread Diogo Martins Silva
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.



-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages osmose-emulator depends on:
ii  libasound21.1.3-5
ii  libc6 2.24-11+deb9u1
ii  libgcc1   1:6.3.0-18
ii  libgl1-mesa-glx [libgl1]  13.0.6-1+b2
ii  libqt5core5a  5.7.1+dfsg-3+b1
ii  libqt5gui55.7.1+dfsg-3+b1
ii  libqt5opengl5 5.7.1+dfsg-3+b1
ii  libqt5widgets55.7.1+dfsg-3+b1
ii  libstdc++66.3.0-18
ii  zlib1g1:1.2.8.dfsg-5

osmose-emulator recommends no packages.

osmose-emulator suggests no packages.

-- no debconf information