1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-24 06:10:09 +01:00

apply parts of Campbell Bartons patch for cleaning up compiler warnings: add static qualifiers to methods, ensure prototypes match definitions and some whitespace and comment changes

This commit is contained in:
richardash1981
2013-02-22 21:29:19 +00:00
parent 9d0daf8662
commit b95918fe52
12 changed files with 73 additions and 67 deletions

View File

@@ -928,7 +928,7 @@ void AudioIO::HandleDeviceChange()
#endif // USE_PORTMIXER
}
PaSampleFormat AudacityToPortAudioSampleFormat(sampleFormat format)
static PaSampleFormat AudacityToPortAudioSampleFormat(sampleFormat format)
{
switch(format) {
case int16Sample:
@@ -3210,11 +3210,11 @@ void AudioIO::AILAProcess(double maxPeak) {
#define MAX(a,b) ((a) > (b) ? (a) : (b))
void DoSoftwarePlaythrough(const void *inputBuffer,
sampleFormat inputFormat,
int inputChannels,
float *outputBuffer,
int len)
static void DoSoftwarePlaythrough(const void *inputBuffer,
sampleFormat inputFormat,
int inputChannels,
float *outputBuffer,
int len)
{
float *tempBuffer = (float *)alloca(len * sizeof(float));
int i, j;