1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-18 17:10:55 +02:00
audacity/src/import/RawAudioGuess.h
Paul Licameli 67cec5ad83 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.
2016-09-07 10:11:41 -04:00

29 lines
738 B
C

/**********************************************************************
Audacity: A Digital Audio Editor
RawAudioGuess.h
Dominic Mazzoni
Attempts to determine the format of an audio file that doesn't
have any header information. Returns the format as a
libsndfile-compatible format, along with the guessed number of
channels and the byte-offset.
**********************************************************************/
#include <wx/defs.h>
#include <sndfile.h>
#ifndef SNDFILE_1
#error Requires libsndfile 1.0.3 or higher
#endif
/* Returns the best guess as to the format, as a libsndfile
SF_FORMAT value
*/
int RawAudioGuess(const wxString &in_fname,
int *out_offset, unsigned *out_channels);