Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forcing WaveOut driver causes Stepmania to not start up on non-Windows #2

Open
kyzentun opened this issue Mar 6, 2016 · 0 comments

Comments

@kyzentun
Copy link

kyzentun commented Mar 6, 2016

If Stepmania can't load the sound driver that is set in the preference, it does not start up. You should not set a sound driver that does not exist on the platform the player is using, because it will break their Stepmania install until they manually fix the preference that you broke.

The next release will have a function for getting the sound driver list so you can write code that doesn't set the preference to something invalid. Also, WaveOut will be the first driver tried, so forcing it probably won't be necessary.

if get_sound_driver_list then
    for i, driver in ipairs(get_sound_driver_list()) do
        if driver == "WaveOut" then
            PREFSMAN:SetPreference("SoundDrivers","WaveOut")
        end
    end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant