mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-06 23:02:42 +02:00
Again, fix compilation without USE_MIDI
This commit is contained in:
parent
64a6fa625d
commit
82f909fe31
@ -191,6 +191,7 @@ MixerTrackCluster::MixerTrackCluster(wxWindow* parent,
|
|||||||
size.GetHeight() - ctrlPos.y - kQuadrupleInset;
|
size.GetHeight() - ctrlPos.y - kQuadrupleInset;
|
||||||
ctrlSize.Set(kLeftSideStackWidth - kQuadrupleInset, nGainSliderHeight);
|
ctrlSize.Set(kLeftSideStackWidth - kQuadrupleInset, nGainSliderHeight);
|
||||||
|
|
||||||
|
#ifdef USE_MIDI
|
||||||
if (GetNote()) {
|
if (GetNote()) {
|
||||||
mSlider_Gain =
|
mSlider_Gain =
|
||||||
safenew MixerTrackSlider(
|
safenew MixerTrackSlider(
|
||||||
@ -201,6 +202,7 @@ MixerTrackCluster::MixerTrackCluster(wxWindow* parent,
|
|||||||
true, 0.0, wxVERTICAL);
|
true, 0.0, wxVERTICAL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
mSlider_Gain =
|
mSlider_Gain =
|
||||||
safenew MixerTrackSlider(
|
safenew MixerTrackSlider(
|
||||||
this, ID_SLIDER_GAIN,
|
this, ID_SLIDER_GAIN,
|
||||||
@ -327,10 +329,12 @@ WaveTrack *MixerTrackCluster::GetRight() const
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_MIDI
|
||||||
NoteTrack *MixerTrackCluster::GetNote() const
|
NoteTrack *MixerTrackCluster::GetNote() const
|
||||||
{
|
{
|
||||||
return dynamic_cast< NoteTrack * >( mTrack );
|
return dynamic_cast< NoteTrack * >( mTrack );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void MixerTrackCluster::UpdatePrefs()
|
void MixerTrackCluster::UpdatePrefs()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user