Update with framework changes

This commit is contained in:
smoogipoo
2021-07-28 21:54:11 +09:00
parent 34c671f712
commit 89f0739a4a
2 changed files with 5 additions and 3 deletions

View File

@ -148,8 +148,12 @@ namespace osu.Game.Audio
if (dataStream == null)
return null;
Track track = new TrackBass(dataStream, (IBassAudioMixer)defaultMixer);
// Todo: This is quite unsafe. TrackBass shouldn't be exposed as public.
Track track = new TrackBass(dataStream);
defaultMixer.Add(track);
AddItem(track);
return track;
}