mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-09 14:16:28 +01:00
Make many counts of tracks and channels unsigned...
... And in some places where a library uses signed types, assert that the reported number is not negative. What led me to this, is that there are many places where a size_t value for an allocation is the product of a number of channels and some other number.
This commit is contained in:
@@ -73,7 +73,7 @@ private:
|
||||
* @param t1 End time for export
|
||||
* @param tags Metadata to include in the file (if possible).
|
||||
*/
|
||||
int DoExport(int channels,
|
||||
int DoExport(unsigned channels,
|
||||
const wxFileName &name,
|
||||
bool selectedOnly,
|
||||
double t0,
|
||||
@@ -196,7 +196,7 @@ private:
|
||||
wxFileName destfile; /**< The file to export to */
|
||||
double t0; /**< Start time for the export */
|
||||
double t1; /**< End time for the export */
|
||||
int channels; /**< Number of channels for ExportMultipleByTrack */
|
||||
unsigned channels; /**< Number of channels for ExportMultipleByTrack */
|
||||
}; // end of ExportKit declaration
|
||||
/* we are going to want an set of these kits, and don't know how many until
|
||||
* runtime. I would dearly like to use a std::vector, but it seems that
|
||||
|
||||
Reference in New Issue
Block a user