mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 13:12:17 +01: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);
|
||||
|
||||
Reference in New Issue
Block a user