Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions osu.Framework/Threading/AudioThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using osu.Framework.Audio;
using osu.Framework.Bindables;
using osu.Framework.Development;
using osu.Framework.Logging;
using osu.Framework.Platform.Linux.Native;

namespace osu.Framework.Threading
Expand Down Expand Up @@ -186,6 +187,8 @@ private void attemptWasapiInitialisation()
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
return;

Logger.Log("Attempting local BassWasapi initialisation");

int wasapiDevice = -1;

// WASAPI device indices don't match normal BASS devices.
Expand Down Expand Up @@ -240,6 +243,7 @@ private void initWasapi(int wasapiDevice)
});

bool initialised = BassWasapi.Init(wasapiDevice, Procedure: wasapiProcedure, Flags: WasapiInitFlags.EventDriven | WasapiInitFlags.AutoFormat, Buffer: 0f, Period: float.Epsilon);
Logger.Log($"Initialising BassWasapi for device {wasapiDevice}...{(initialised ? "success!" : "FAILED")}");

if (!initialised)
return;
Expand Down
Loading