Skip to content

Commit d742190

Browse files
"Spectrum" now shows same range as "EQ"
1 parent 45a5850 commit d742190

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

VBAudioRouter/Controls/EQNodeControl.xaml.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Namespace Controls
2929

3030
Dim EQEffect As EqualizerEffectDefinition
3131

32-
Private Const MinFreq As Integer = 100
33-
Private Const MaxFreq As Integer = 12000
32+
Public Const MinFreq As Integer = 100
33+
Public Const MaxFreq As Integer = 12000
3434

3535
Public Async Function Initialize(graph As AudioGraph) As Task Implements IAudioNodeControl.Initialize
3636
_BaseAudioNode = graph.CreateSubmixNode()

VBAudioRouter/Controls/SpectrumNodeControl.xaml.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Namespace Controls
2626
Dim _source As PlaybackSource = PlaybackSource.CreateFromAudioNode(BaseAudioNode)
2727
Dim _converter As New SourceConverter()
2828
_converter.Source = _source.Source
29-
_converter.MinFrequency = 110.0F ' Note A2
30-
_converter.MaxFrequency = 3520.0F ' Note A7
29+
_converter.MinFrequency = EQNodeControl.MinFreq
30+
_converter.MaxFrequency = EQNodeControl.MaxFreq
3131
_converter.FrequencyCount = 12 * 5 * 5 ' 5 octaves, 5 bars per note
3232
_converter.FrequencyScale = ScaleType.Logarithmic
3333
_converter.SpectrumRiseTime = TimeSpan.FromMilliseconds(20)

0 commit comments

Comments
 (0)