mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 09:01:15 +02:00
Extensive changes to improve NoteTrack display and (some) editing, NoteTrack playback via MIDI, and Midi-to-Audio alignment.
This commit is contained in:
@@ -161,6 +161,13 @@ bool XMLValueChecker::IsValidChannel(const int nValue)
|
||||
return (nValue >= Track::LeftChannel) && (nValue <= Track::MonoChannel);
|
||||
}
|
||||
|
||||
#ifdef USE_MIDI
|
||||
bool XMLValueChecker::IsValidVisibleChannels(const int nValue)
|
||||
{
|
||||
return (nValue >= 0 && nValue < (1 << 16));
|
||||
}
|
||||
#endif
|
||||
|
||||
bool XMLValueChecker::IsValidSampleFormat(const int nValue)
|
||||
{
|
||||
return (nValue == int16Sample) || (nValue == int24Sample) || (nValue == floatSample);
|
||||
|
@@ -42,6 +42,7 @@ public:
|
||||
static bool IsGoodInt(const wxString strInt);
|
||||
|
||||
static bool IsValidChannel(const int nValue);
|
||||
static bool IsValidVisibleChannels(const int nValue);
|
||||
static bool IsValidSampleFormat(const int nValue); // true if nValue is one sampleFormat enum values
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user