mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Disconnect volume from Init
This commit is contained in:
@@ -352,7 +352,8 @@ namespace RedBookPlayer.Models.Hardware
|
||||
_currentDisc = 0;
|
||||
|
||||
_filterStage = new FilterStage();
|
||||
_soundOutput = new SoundOutput(defaultVolume);
|
||||
_soundOutput = new SoundOutput(ProviderRead, defaultVolume);
|
||||
_soundOutput.PropertyChanged += SoundOutputStateChanged;
|
||||
|
||||
_availableTrackList = new Dictionary<int, List<int>>();
|
||||
for(int i = 0; i < _numberOfDiscs; i++)
|
||||
@@ -400,13 +401,10 @@ namespace RedBookPlayer.Models.Hardware
|
||||
_filterStage.SetupFilters();
|
||||
|
||||
// Initialize the sound output
|
||||
_soundOutput.Init(ProviderRead, autoPlay);
|
||||
_soundOutput.Init(autoPlay);
|
||||
if(_soundOutput == null || !_soundOutput.Initialized)
|
||||
return;
|
||||
|
||||
// Add event handling for the sound output
|
||||
_soundOutput.PropertyChanged += SoundOutputStateChanged;
|
||||
|
||||
// Load in the track list for the current disc
|
||||
LoadTrackList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user