Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
stepmania defaulting to using OSS instead of ALSA
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
berardel
n00b
n00b


Joined: 03 Mar 2018
Posts: 34
Location: United States

PostPosted: Sun Mar 25, 2018 4:26 am    Post subject: stepmania defaulting to using OSS instead of ALSA Reply with quote

so whenever i run stepmania(version 5.1), it always outputs this. everything but the sound works fine though.
Code:

ALSA: Advanced Linux Sound Architecture Driver Version k4.9.76-gentoo-r1.
ALSA Driver: 0: HDA Intel PCH [PCH], device 0: Generic Analog [Generic Analog], 1/1 subdevices avail
ALSA Driver: 0: HDA Intel PCH [PCH], device 1: Generic Digital [Generic Digital], 1/1 subdevices avail
ALSA Driver: 1: HDA NVidia [NVidia], device 3: Generic Digital [Generic Digital], 1/1 subdevices avail
ALSA Driver: 2: USB Sound Device [Device], device 0: USB Audio [USB Audio], 0/1 subdevices avail
ALSA: dsnd_pcm_hw_params_set_access: Invalid argument
Couldn't load driver ALSA-sw: SetHWParams failed
Sound driver: OSS

does someone know what i can do about this so that it will use ALSA?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6279
Location: /usr/lib64/lv2

PostPosted: Sun Mar 25, 2018 3:20 pm    Post subject: Reply with quote

What's stepmania? eix stepmania has no results.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
berardel
n00b
n00b


Joined: 03 Mar 2018
Posts: 34
Location: United States

PostPosted: Sun Mar 25, 2018 4:11 pm    Post subject: Reply with quote

audiodef wrote:
What's stepmania?

https://www.stepmania.com/
its a rhythm game, its also kind of similar to dance dance revolution(which is more well known)
https://www.youtube.com/watch?v=in4PghBuPiE
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6279
Location: /usr/lib64/lv2

PostPosted: Sun Mar 25, 2018 5:07 pm    Post subject: Reply with quote

Neat.

It seems like this problem is well-known: https://ubuntuforums.org/archive/index.php/t-9144.html

Searching for "Couldn't load driver ALSA-sw: SetHWParams failed" (at least at duckduckgo) brings up mentions of Stepmania without even including it in the search string.

See if some of the suggestions in other forums, such as making sure nothing else has a hold on the sound card, works.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6618
Location: Saint Amant, Acadiana

PostPosted: Sun Mar 25, 2018 5:22 pm    Post subject: Reply with quote

You can enable OSS emulation in kernel.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6279
Location: /usr/lib64/lv2

PostPosted: Sun Mar 25, 2018 6:33 pm    Post subject: Reply with quote

Considering the trouble I've noted when doing a quick search for this issue, I think Jaglover may have the best solution.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
berardel
n00b
n00b


Joined: 03 Mar 2018
Posts: 34
Location: United States

PostPosted: Sun Mar 25, 2018 6:35 pm    Post subject: Reply with quote

Jaglover wrote:
You can enable OSS emulation in kernel.

ive tried this and it doesnt actually work for this
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6618
Location: Saint Amant, Acadiana

PostPosted: Sun Mar 25, 2018 6:48 pm    Post subject: Reply with quote

berardel wrote:
Jaglover wrote:
You can enable OSS emulation in kernel.

ive tried this and it doesnt actually work for this

Something is wrong then. Were /dev/dsp nodes created?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
berardel
n00b
n00b


Joined: 03 Mar 2018
Posts: 34
Location: United States

PostPosted: Sun Mar 25, 2018 6:52 pm    Post subject: Reply with quote

Quote:
Something is wrong then. Were /dev/dsp nodes created?

im pretty sure, when i execute
Code:
ls /dev/
they do show up there
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6618
Location: Saint Amant, Acadiana

PostPosted: Sun Mar 25, 2018 7:09 pm    Post subject: Reply with quote

Actually they claim only ALSA is needed. Can this game be configured to force ALSA? You may be better off asking it on their IRC channel.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6875

PostPosted: Sun Mar 25, 2018 11:24 pm    Post subject: Reply with quote

Jaglover wrote:
You may be better off asking it on their IRC channel.

Yep, and you can show them this link, which shown wrongly trying to set access in alsa result in this error, so more a real issue from their side.
https://www.linuxquestions.org/questions/linux-software-2/alsa-snd_pcm_hw_params-failure-invalid-argument-805660/
Back to top
View user's profile Send private message
berardel
n00b
n00b


Joined: 03 Mar 2018
Posts: 34
Location: United States

PostPosted: Mon Mar 26, 2018 5:30 am    Post subject: Reply with quote

Jaglover wrote:
Can this game be configured to force ALSA?

i dont think i know how to compile it to do this, ive also tried compiling it from source with the default settings but the problem is still there.
i found this though:
Quote:
That's the actual problem. It looks like your card doesn't support SND_PCM_FORMAT_S16_LE. Try changing "SoundDevice" to "default" in StepMania.ini; this will force ALSA conversions to be used.

problem is though, i dont have this file anywhere on my computer. i have both the already compiled version (version 5.1) and also one where i downloaded the source code(version 5.2 i think) and there isnt such a file in either folder
Jaglover wrote:
You may be better off asking it on their IRC channel.

well i dont usually use IRC for anything, i also dont know of any official IRC servers for stepmania.
Back to top
View user's profile Send private message
berardel
n00b
n00b


Joined: 03 Mar 2018
Posts: 34
Location: United States

PostPosted: Tue Apr 03, 2018 8:53 am    Post subject: Reply with quote

ok so i fixed a problem, it still isnt using ALSA though.
(im using the etterna stepmania build) i edited
Code:
etterna-0.56.2-CalcOnly/Save/Preferences.ini

i edited the line
Code:
SoundDevice=
to
Code:
SoundDevice=Default

now i no longer get
Code:
ALSA: dsnd_pcm_hw_params_set_access: Invalid argument

instead this is what is output instead
Code:
ALSA device overridden to "Default"
Couldn't load driver ALSA-sw: dsnd_pcm_open(Default): No such file or directory
Sound driver: OSS

does someone know what i can do to fix this?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6618
Location: Saint Amant, Acadiana

PostPosted: Tue Apr 03, 2018 12:23 pm    Post subject: Reply with quote

Quote:
well i dont usually use IRC for anything, i also dont know of any official IRC servers for stepmania.

#stepmania-devs on irc.freenode.net

Took me 5 seconds to look it up.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
berardel
n00b
n00b


Joined: 03 Mar 2018
Posts: 34
Location: United States

PostPosted: Wed Apr 04, 2018 3:40 am    Post subject: Reply with quote

ok so i fixed it completely now, thanks to the help of the stepmania IRC channel, its using pulseaudio instead of OSS.
i edited the line sound drivers to Pulse in that one file mentioned above.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum