public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] dosbox 0.74.3 can't init SDL: No audio device on one machine
@ 2023-08-31 18:51 Walter Dnes
  2023-08-31 20:21 ` Michael
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Walter Dnes @ 2023-08-31 18:51 UTC (permalink / raw
  To: Gentoo Users List

  This is the most frustrating type of problem.  On one machine I can
run dosbox fine.  On a second machine...

[waltdnes][~] /usr/bin/dosbox 
DOSBox version 0.74-3
Copyright 2002-2019 DOSBox Team, published under GNU GPL.
---
Exit to error: Can't init SDL No available audio device

  The regular user (waltdnes) is a member of the audio group on both
machines.  The files in ~/.dosbox are identical, and "emerge -pv dosbox"
spits out identical output.  The directory /dev/snd is identical on both
machines.  Any ideas?

-- 
I've seen things, you people wouldn't believe; Gopher, Netscape with
frames, the first Browser Wars.  Searching for pages with AltaVista,
pop-up windows self-replicating, trying to uninstall RealPlayer.  All
those moments, will be lost in time like tears in rain... time to die.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] dosbox 0.74.3 can't init SDL: No audio device on one machine
  2023-08-31 18:51 [gentoo-user] dosbox 0.74.3 can't init SDL: No audio device on one machine Walter Dnes
@ 2023-08-31 20:21 ` Michael
  2023-08-31 22:38   ` [gentoo-user] Re: [SOKVED] " Walter Dnes
  2023-08-31 21:45 ` [gentoo-user] " Nuno Silva
  2023-09-01 11:58 ` [gentoo-user] " Nikos Chantziaras
  2 siblings, 1 reply; 6+ messages in thread
From: Michael @ 2023-08-31 20:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

On Thursday, 31 August 2023 19:51:20 BST Walter Dnes wrote:
>   This is the most frustrating type of problem.  On one machine I can
> run dosbox fine.  On a second machine...
> 
> [waltdnes][~] /usr/bin/dosbox
> DOSBox version 0.74-3
> Copyright 2002-2019 DOSBox Team, published under GNU GPL.
> ---
> Exit to error: Can't init SDL No available audio device
> 
>   The regular user (waltdnes) is a member of the audio group on both
> machines.  The files in ~/.dosbox are identical, and "emerge -pv dosbox"
> spits out identical output.  The directory /dev/snd is identical on both
> machines.  Any ideas?

Do both machines have alsa built the same way and working?

Does it work without error if you specify it on the CLI?

SDL_AUDIODRIVER=alsa /usr/bin/dosbox

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: dosbox 0.74.3 can't init SDL: No audio device on one machine
  2023-08-31 18:51 [gentoo-user] dosbox 0.74.3 can't init SDL: No audio device on one machine Walter Dnes
  2023-08-31 20:21 ` Michael
@ 2023-08-31 21:45 ` Nuno Silva
  2023-08-31 22:43   ` [gentoo-user] Re: [SOLVED] " Walter Dnes
  2023-09-01 11:58 ` [gentoo-user] " Nikos Chantziaras
  2 siblings, 1 reply; 6+ messages in thread
From: Nuno Silva @ 2023-08-31 21:45 UTC (permalink / raw
  To: gentoo-user

On 2023-08-31, Walter Dnes wrote:

>   This is the most frustrating type of problem.  On one machine I can
> run dosbox fine.  On a second machine...
>
> [waltdnes][~] /usr/bin/dosbox 
> DOSBox version 0.74-3
> Copyright 2002-2019 DOSBox Team, published under GNU GPL.
> ---
> Exit to error: Can't init SDL No available audio device
>
>   The regular user (waltdnes) is a member of the audio group on both
> machines.  The files in ~/.dosbox are identical, and "emerge -pv dosbox"
> spits out identical output.

What about sdl-related packages, same flags and versions there too?

> The directory /dev/snd is identical on both
> machines.  Any ideas?

-- 
Nuno Silva



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: [SOKVED] dosbox 0.74.3 can't init SDL: No audio device on one machine
  2023-08-31 20:21 ` Michael
@ 2023-08-31 22:38   ` Walter Dnes
  0 siblings, 0 replies; 6+ messages in thread
From: Walter Dnes @ 2023-08-31 22:38 UTC (permalink / raw
  To: gentoo-user

On Thu, Aug 31, 2023 at 09:21:40PM +0100, Michael wrote
> 
> Do both machines have alsa built the same way and working?

  I don't know.  From the looks of it, probably not.

> 
> Does it work without error if you specify it on the CLI?

  CLI doesn't make a difference.

> 
> SDL_AUDIODRIVER=alsa /usr/bin/dosbox

  That changes the error message...

[waltdnes][~] SDL_AUDIODRIVER=alsa /usr/bin/dosbox
DOSBox version 0.74-3
Copyright 2002-2019 DOSBox Team, published under GNU GPL.
---
Exit to error: Can't init SDL Audio target 'alsa' not available

  Later... that very same evening...

  After some spelunking I noticed that I had libsdl and libsdl2 flagged
with "-alsa" in package.use on the non-working machine (don't know why),
and "alsa" on the working machine.  Changing the flags to "alsa" and
updating world with "--changed-use" fixed things on the non-working
machine.  Thanks for everybody's help.

-- 
I've seen things, you people wouldn't believe; Gopher, Netscape with
frames, the first Browser Wars.  Searching for pages with AltaVista,
pop-up windows self-replicating, trying to uninstall RealPlayer.  All
those moments, will be lost in time like tears in rain... time to die.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: [SOLVED] Re: dosbox 0.74.3 can't init SDL: No audio device on one machine
  2023-08-31 21:45 ` [gentoo-user] " Nuno Silva
@ 2023-08-31 22:43   ` Walter Dnes
  0 siblings, 0 replies; 6+ messages in thread
From: Walter Dnes @ 2023-08-31 22:43 UTC (permalink / raw
  To: gentoo-user

On Thu, Aug 31, 2023 at 10:45:54PM +0100, Nuno Silva wrote
> 
> What about sdl-related packages, same flags and versions there too?

  Turns out that I had libsdl and libsdl2 flagged "-alsa" in package.use
on the non-working machine (don't know why).  Flipping the flags to
"alsa", and then re-emerging, solved the problem.

-- 
I've seen things, you people wouldn't believe; Gopher, Netscape with
frames, the first Browser Wars.  Searching for pages with AltaVista,
pop-up windows self-replicating, trying to uninstall RealPlayer.  All
those moments, will be lost in time like tears in rain... time to die.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: dosbox 0.74.3 can't init SDL: No audio device on one machine
  2023-08-31 18:51 [gentoo-user] dosbox 0.74.3 can't init SDL: No audio device on one machine Walter Dnes
  2023-08-31 20:21 ` Michael
  2023-08-31 21:45 ` [gentoo-user] " Nuno Silva
@ 2023-09-01 11:58 ` Nikos Chantziaras
  2 siblings, 0 replies; 6+ messages in thread
From: Nikos Chantziaras @ 2023-09-01 11:58 UTC (permalink / raw
  To: gentoo-user

On 31/08/2023 21:51, Walter Dnes wrote:
>    This is the most frustrating type of problem.  On one machine I can
> run dosbox fine.  On a second machine...
> 
> [waltdnes][~] /usr/bin/dosbox
> DOSBox version 0.74-3
> Copyright 2002-2019 DOSBox Team, published under GNU GPL.
> ---
> Exit to error: Can't init SDL No available audio device

These days I recommend games-emulation/dosbox-staging instead.(It's a 
fork of dosbox, *not* a staging area for dosbox. The name is rather 
unfortunate.)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-01 11:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31 18:51 [gentoo-user] dosbox 0.74.3 can't init SDL: No audio device on one machine Walter Dnes
2023-08-31 20:21 ` Michael
2023-08-31 22:38   ` [gentoo-user] Re: [SOKVED] " Walter Dnes
2023-08-31 21:45 ` [gentoo-user] " Nuno Silva
2023-08-31 22:43   ` [gentoo-user] Re: [SOLVED] " Walter Dnes
2023-09-01 11:58 ` [gentoo-user] " Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox