[Audacity-devel] Batch commands and SelectAllIfNone
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Philip V. B. <pdv...@vi...> - 2009-04-23 01:03:29
|
The problem I ran into is if you do batch processing on the current project, and don't have a time range selected, the batch commands don't do anything. Normal effects automatically do a OnSelectAll() if there is no selection and TimeSelectedFlag is set for the command. Batch commands call SelectAllIfNone, but that command doesn't select all in the case where a zero-length time range is selected. My solution to this was to make SelectAllIfNone also check for the time range selected, and if there is either no track, or no time range selected, it will OnSelectAll. The only problem I would foresee is if there is an effect which will act on a single, entire track if a track is selected with no time range. Then the batch processing would lose this ability. Philip Van Baren |