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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user