Skip to content

Conversation

@peppy
Copy link
Member

@peppy peppy commented Oct 25, 2025

No description provided.

Copy link
Contributor

@smoogipoo smoogipoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay to me but I haven't tested yet.

@smoogipoo
Copy link
Contributor

smoogipoo commented Oct 25, 2025

Should I be concerned we're initialising the bass device 4 times?

[runtime] 2025-10-25 07:59:40 [verbose]: Initialising BassWasapi for device -1...success!
[runtime] 2025-10-25 07:59:40 [verbose]: 🔈 BASS initialised
[runtime] 2025-10-25 07:59:40 [verbose]: BASS version:           2.4.17.48
[runtime] 2025-10-25 07:59:40 [verbose]: BASS FX version:        2.4.12.16
[runtime] 2025-10-25 07:59:40 [verbose]: BASS MIX version:       2.4.12.10
[runtime] 2025-10-25 07:59:40 [verbose]: Device:                 Default
[runtime] 2025-10-25 07:59:40 [verbose]: Driver:
[runtime] 2025-10-25 07:59:40 [verbose]: Update period:          5 ms
[runtime] 2025-10-25 07:59:40 [verbose]: Device buffer length:   10 ms
[runtime] 2025-10-25 07:59:40 [verbose]: Playback buffer length: 100 ms
[runtime] 2025-10-25 07:59:40 [verbose]: 🔈 BASS initialised
[runtime] 2025-10-25 07:59:40 [verbose]: BASS version:           2.4.17.48
[runtime] 2025-10-25 07:59:40 [verbose]: BASS FX version:        2.4.12.16
[runtime] 2025-10-25 07:59:40 [verbose]: BASS MIX version:       2.4.12.10
[runtime] 2025-10-25 07:59:40 [verbose]: Device:                 Default
[runtime] 2025-10-25 07:59:40 [verbose]: Driver:
[runtime] 2025-10-25 07:59:40 [verbose]: Update period:          5 ms
[runtime] 2025-10-25 07:59:40 [verbose]: Device buffer length:   10 ms
[runtime] 2025-10-25 07:59:40 [verbose]: Playback buffer length: 100 ms
[runtime] 2025-10-25 07:59:40 [verbose]: 🔈 BASS initialised
[runtime] 2025-10-25 07:59:40 [verbose]: BASS version:           2.4.17.48
[runtime] 2025-10-25 07:59:40 [verbose]: BASS FX version:        2.4.12.16
[runtime] 2025-10-25 07:59:40 [verbose]: BASS MIX version:       2.4.12.10
[runtime] 2025-10-25 07:59:40 [verbose]: Device:                 Default
[runtime] 2025-10-25 07:59:40 [verbose]: Driver:
[runtime] 2025-10-25 07:59:40 [verbose]: Update period:          5 ms
[runtime] 2025-10-25 07:59:40 [verbose]: Device buffer length:   10 ms
[runtime] 2025-10-25 07:59:40 [verbose]: Playback buffer length: 100 ms
[runtime] 2025-10-25 07:59:40 [verbose]: 🔈 BASS initialised
[runtime] 2025-10-25 07:59:40 [verbose]: BASS version:           2.4.17.48
[runtime] 2025-10-25 07:59:40 [verbose]: BASS FX version:        2.4.12.16
[runtime] 2025-10-25 07:59:40 [verbose]: BASS MIX version:       2.4.12.10
[runtime] 2025-10-25 07:59:40 [verbose]: Device:                 Default
[runtime] 2025-10-25 07:59:40 [verbose]: Driver:
[runtime] 2025-10-25 07:59:40 [verbose]: Update period:          5 ms
[runtime] 2025-10-25 07:59:40 [verbose]: Device buffer length:   10 ms
[runtime] 2025-10-25 07:59:40 [verbose]: Playback buffer length: 100 ms

My concern here is one of these 4 initialises potentially going in without the wasapi experimental flag.

@smoogipoo smoogipoo merged commit a6692e6 into ppy:master Oct 25, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from Next up to Done in osu! untitled project Oct 25, 2025
@peppy
Copy link
Member Author

peppy commented Oct 25, 2025

Should I be concerned we're initialising the bass device 4 times?


[runtime] 2025-10-25 07:59:40 [verbose]: Initialising BassWasapi for device -1...success!

[runtime] 2025-10-25 07:59:40 [verbose]: 🔈 BASS initialised

[runtime] 2025-10-25 07:59:40 [verbose]: BASS version:           2.4.17.48

[runtime] 2025-10-25 07:59:40 [verbose]: BASS FX version:        2.4.12.16

[runtime] 2025-10-25 07:59:40 [verbose]: BASS MIX version:       2.4.12.10

[runtime] 2025-10-25 07:59:40 [verbose]: Device:                 Default

[runtime] 2025-10-25 07:59:40 [verbose]: Driver:

[runtime] 2025-10-25 07:59:40 [verbose]: Update period:          5 ms

[runtime] 2025-10-25 07:59:40 [verbose]: Device buffer length:   10 ms

[runtime] 2025-10-25 07:59:40 [verbose]: Playback buffer length: 100 ms

[runtime] 2025-10-25 07:59:40 [verbose]: 🔈 BASS initialised

[runtime] 2025-10-25 07:59:40 [verbose]: BASS version:           2.4.17.48

[runtime] 2025-10-25 07:59:40 [verbose]: BASS FX version:        2.4.12.16

[runtime] 2025-10-25 07:59:40 [verbose]: BASS MIX version:       2.4.12.10

[runtime] 2025-10-25 07:59:40 [verbose]: Device:                 Default

[runtime] 2025-10-25 07:59:40 [verbose]: Driver:

[runtime] 2025-10-25 07:59:40 [verbose]: Update period:          5 ms

[runtime] 2025-10-25 07:59:40 [verbose]: Device buffer length:   10 ms

[runtime] 2025-10-25 07:59:40 [verbose]: Playback buffer length: 100 ms

[runtime] 2025-10-25 07:59:40 [verbose]: 🔈 BASS initialised

[runtime] 2025-10-25 07:59:40 [verbose]: BASS version:           2.4.17.48

[runtime] 2025-10-25 07:59:40 [verbose]: BASS FX version:        2.4.12.16

[runtime] 2025-10-25 07:59:40 [verbose]: BASS MIX version:       2.4.12.10

[runtime] 2025-10-25 07:59:40 [verbose]: Device:                 Default

[runtime] 2025-10-25 07:59:40 [verbose]: Driver:

[runtime] 2025-10-25 07:59:40 [verbose]: Update period:          5 ms

[runtime] 2025-10-25 07:59:40 [verbose]: Device buffer length:   10 ms

[runtime] 2025-10-25 07:59:40 [verbose]: Playback buffer length: 100 ms

[runtime] 2025-10-25 07:59:40 [verbose]: 🔈 BASS initialised

[runtime] 2025-10-25 07:59:40 [verbose]: BASS version:           2.4.17.48

[runtime] 2025-10-25 07:59:40 [verbose]: BASS FX version:        2.4.12.16

[runtime] 2025-10-25 07:59:40 [verbose]: BASS MIX version:       2.4.12.10

[runtime] 2025-10-25 07:59:40 [verbose]: Device:                 Default

[runtime] 2025-10-25 07:59:40 [verbose]: Driver:

[runtime] 2025-10-25 07:59:40 [verbose]: Update period:          5 ms

[runtime] 2025-10-25 07:59:40 [verbose]: Device buffer length:   10 ms

[runtime] 2025-10-25 07:59:40 [verbose]: Playback buffer length: 100 ms

My concern here is one of these 4 initialises potentially going in without the wasapi experimental flag.

I've brought this up before. Not sure it's any worse with this PR. I think it's worth investigating since IIRC initialising bass is slightly time consuming.

@failaip12
Copy link

I did some additional investigation into the initialization issue, and it appears to be somewhat misleading. The InitBass function performs a preliminary check before doing any actual initialization work, so the logs can give the impression that initialization occurred even when it didn’t.

if (Bass.CurrentDevice == device)
return true;

This highlights two related issues:

  1. Changing the “Use experimental audio mode” setting has no effect once InitBass has already been loaded.

  2. There’s a potential (i didn't manage to produce it) scenario where InitBass could initialize without the WASAPI experimental flag, even when that flag is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants