Opened 9 years ago

Closed 9 years ago

#3448 closed defect (invalid)

OpenAL Errors and no sound

Reported by: Lonnie Owned by:
Priority: Must Have Milestone:
Component: Music & Sound FX Keywords:
Cc: Patch:

Description

I'm running Ubuntu 15.04 MATE with on an ASUS M5A97 motherboard which has onboard Realtek ALC 887 8 channel HD audio. I only use 2 channels so not sure if that info is relevant or not. Here' a link for the specs.

I get the same errors as mentioned in ticket 3285 but I do have sound through pulse and alsa, except for audio over HDMI which I think is linked to the same problem I have here. When launching from terminal I get the below errors. What I have found is that /dev/dsp does not exist on my system which is used to find the first audio device which HDMI has the higher priority. Thanks to this error I think I now understand what is happening here. I am hoping that you guys might know what creates and manages this /dev/dsp so I can possibly remove it and reinstall it. I think putting this back is key to resolving this error message. Although apps should be using the default sound and not the first sound device but it is what it is. Any help would be appreciated.

Ticket 3285 mentioned that these errors were triggered from an audio device being disabled but mine is not and I have sound with my 2 channel desk speakers and headset and I pretty much just gave up on HDMI audio awhile back as it would work and then not work. I think it was a combination of patches that probably did not go well and broke the audio feature through HDMI to my second monitor. This HDMI problem followed me from 14.10 to now 15.04. I'll test with it disconnected and hopefully I can update this ticket with the results and rule out HDMI but I think there will still be an issue with this /dev/dsp missing.

The other odd thing is that I cannot find these .ogg files referenced in the errors so I'm wondering if they even exist on my system. Locate civ_female_what_is_it_1.ogg for example will fail and when I locate .ogg I see other files but nothing for 0ad. /usr/share/games/0ad does not have a music folder at all so maybe these are not getting installed or maybe compressed? Where should these files be located?

One other comment is that I can play this game without sound but I have yet to actually finish without it coming to a halt and become unresponsive. If I have it in full screen Alt+F2 will not work to try to kill the process so I basically have to power off and hope nothing broke. So far so good but now I run in a window so I can more easily kill the app. Not sure if this is related or not but figured I'd mention it.

Launching 0ad from terminal.... $ 0ad Cache: 400 (total: 7886) MiB TIMER| InitVfs: 1.1591 ms TIMER| CONFIG_Init: 4.69029 ms AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: No such file or directory ERROR: Sound: AlcInit failed, m_Device=0x0 m_Context=0x0 dev_name=OpenAL Soft err=a004

TIMER| shutdown ConfigDB: 0.222 us ERROR: OpenAL error: (null); called from ~CSoundManager (line 273)

* filtered timer messages out to trim this post

GAME STARTED, ALL INIT COMPLETE sys_cursor_create: using Xcursor to create 32 x 32 cursor ERROR: OpenAL error: (null); called from InitOggFile (line 74)

ERROR: Failed to create initial buffer. OpenAL error: (null)

ERROR: could not initialize ogg data at audio/voice/hellenes/civ/female/civ_female_what_is_it_1.ogg ERROR: OpenAL error: (null); called from ~COggData (line 36)

ERROR: OpenAL error: (null); called from ~COggData (line 40)

ERROR: OpenAL error: (null); called from ~COggData (line 44)

ERROR: OpenAL error: (null); called from ~CSoundData (line 37)

ERROR: OpenAL error: (null); called from ~CSoundData (line 41)

ERROR: error loading sound: pathname=audio/voice/hellenes/civ/female/civ_female_what_is_it_1.ogg, error=Function failed (no details available) ERROR: OpenAL error: (null); called from InitOggFile (line 74)

ERROR: Failed to create initial buffer. OpenAL error: (null)

ERROR: could not initialize ogg data at audio/voice/hellenes/civ/female/civ_female_what_is_it_2.ogg

Change History (4)

comment:1 by Lonnie, 9 years ago

Well I fixed my own issues. Thanks to this game to help me find where the problem actually was! Here is what I did that solved my problems with sound through HDMI and 0AD. Hopefully this helps others that might have the same issues.

Fixing HDMI sound in general First within the Sound Preferences through sound that is native to Ubuntu 15.04, System>Hardware>Sound, on the hardware tab select your HDMI device. Swap through the listed profiles below and tested each until you get sound. In my case I used HDMI 2 profile.

Fixing 0AD sound errors Alsamixer was already installed on my system so I'm not sure if this came over from my attempts at fixing this in 14.10 or not but install it if missing. You'll have to google that. To run Alsamixer goto terminal and type alsamixer. A terminal graphic interface will come up where you can select your different devices that listed my onboard audio, HDMI, and my G930 headset. This basically confirms you have alsa running successfully and its seeing your devices. Press ESC to exit this and do the following from terminal:

sudo apt-get install osspd-alsa sudo alsa force-reload

This package will install osspd and the alsa plugin. This put back the /dev/dsp so it is now present on my system and 0ad code can now find the active sound device. I tested 0ad and sound is now back! Now lets see if I can actually finish a game and not have it crash. :p I'll open another ticket if so but its probably because I like to marathon and with no multi-core threading then it's probably overloading the first core.

I do not know why other folks running 15.04 are not seeing this problem but maybe this was MATE's decision to not include oss by default. I think this should be listed as a dependency with Ubuntu because if you do not have these packages installed then 0ad will generate sound errors. Or better yet do away with oss in your code which is probably best long term solution. You can close this ticket.

Thanks!

Lonnie

comment:2 by Stan, 9 years ago

Keywords: OpenAL error dsp removed
Milestone: Backlog
Resolution: fixed
Status: newclosed

comment:3 by Stan, 9 years ago

Resolution: fixed
Status: closedreopened

comment:4 by Stan, 9 years ago

Resolution: invalid
Status: reopenedclosed
Note: See TracTickets for help on using tickets.