openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

changing audio playback device does not work #496

Closed ezio416 closed 2 weeks ago

ezio416 commented 1 month ago

It doesn't matter what I set it to or what my primary Windows audio device is, I always have to restart the game to change the audio device. I'm on 1.26.25, but this has been an issue for a very long time, I just forgot about it and also forgot the setting even existed.

XertroV commented 1 month ago

As another data point, changing audio devices via openplanet works fine for me (on my main pc at least)

codecat commented 1 month ago

I am also unable to reproduce this issue, using this test plugin as a way to play audio:

Audio::Sample@ g_sample;

void Main() {
    @g_sample = Audio::LoadSample("Kick.wav");
}

void RenderMenu() {
    if (UI::MenuItem("Play kick")) {
        Audio::Play(g_sample);
    }
}

Do you see this in your log when you switch interface?

image

ezio416 commented 2 weeks ago

My bad, I must have been doing something wrong, this setting does work