mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Update with framework changes
This commit is contained in:
parent
34c671f712
commit
89f0739a4a
@ -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;
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,6 @@ using JetBrains.Annotations;
|
||||
using osu.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Audio;
|
||||
using osu.Framework.Audio.Mixing;
|
||||
using osu.Framework.Audio.Track;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
@ -291,7 +290,6 @@ namespace osu.Game.Tests.Visual
|
||||
private bool running;
|
||||
|
||||
public TrackVirtualManual(IFrameBasedClock referenceClock)
|
||||
: base(new NullAudioMixer())
|
||||
{
|
||||
this.referenceClock = referenceClock;
|
||||
Length = double.PositiveInfinity;
|
||||
|
Loading…
Reference in New Issue
Block a user