mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 16:41:14 +02:00
remove an unused argument to a method as it's both unused and never set to a variable value.
This commit is contained in:
parent
d9177348c2
commit
92ba0eeafc
@ -3193,8 +3193,7 @@ void DoSoftwarePlaythrough(const void *inputBuffer,
|
|||||||
sampleFormat inputFormat,
|
sampleFormat inputFormat,
|
||||||
int inputChannels,
|
int inputChannels,
|
||||||
float *outputBuffer,
|
float *outputBuffer,
|
||||||
int len,
|
int len)
|
||||||
float gain)
|
|
||||||
{
|
{
|
||||||
float *tempBuffer = (float *)alloca(len * sizeof(float));
|
float *tempBuffer = (float *)alloca(len * sizeof(float));
|
||||||
int i, j;
|
int i, j;
|
||||||
@ -3219,8 +3218,8 @@ void DoSoftwarePlaythrough(const void *inputBuffer,
|
|||||||
|
|
||||||
int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
|
int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
|
||||||
unsigned long framesPerBuffer,
|
unsigned long framesPerBuffer,
|
||||||
const PaStreamCallbackTimeInfo *timeInfo,
|
const PaStreamCallbackTimeInfo * WXUNUSED(timeInfo),
|
||||||
const PaStreamCallbackFlags statusFlags, void *userData )
|
const PaStreamCallbackFlags WXUNUSED(statusFlags), void * WXUNUSED(userData) )
|
||||||
{
|
{
|
||||||
int numPlaybackChannels = gAudioIO->mNumPlaybackChannels;
|
int numPlaybackChannels = gAudioIO->mNumPlaybackChannels;
|
||||||
int numPlaybackTracks = gAudioIO->mPlaybackTracks.GetCount();
|
int numPlaybackTracks = gAudioIO->mPlaybackTracks.GetCount();
|
||||||
@ -3311,7 +3310,7 @@ int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
|
|||||||
if (inputBuffer && gAudioIO->mSoftwarePlaythrough) {
|
if (inputBuffer && gAudioIO->mSoftwarePlaythrough) {
|
||||||
DoSoftwarePlaythrough(inputBuffer, gAudioIO->mCaptureFormat,
|
DoSoftwarePlaythrough(inputBuffer, gAudioIO->mCaptureFormat,
|
||||||
numCaptureChannels,
|
numCaptureChannels,
|
||||||
(float *)outputBuffer, (int)framesPerBuffer, 1.0f);
|
(float *)outputBuffer, (int)framesPerBuffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3336,7 +3335,7 @@ int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
|
|||||||
if (inputBuffer && gAudioIO->mSoftwarePlaythrough) {
|
if (inputBuffer && gAudioIO->mSoftwarePlaythrough) {
|
||||||
DoSoftwarePlaythrough(inputBuffer, gAudioIO->mCaptureFormat,
|
DoSoftwarePlaythrough(inputBuffer, gAudioIO->mCaptureFormat,
|
||||||
numCaptureChannels,
|
numCaptureChannels,
|
||||||
(float *)outputBuffer, (int)framesPerBuffer, 1.0f);
|
(float *)outputBuffer, (int)framesPerBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the results to outputMeterFloats if necessary
|
// Copy the results to outputMeterFloats if necessary
|
||||||
@ -3652,7 +3651,7 @@ int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
|
|||||||
if (inputBuffer && gAudioIO->mSoftwarePlaythrough) {
|
if (inputBuffer && gAudioIO->mSoftwarePlaythrough) {
|
||||||
DoSoftwarePlaythrough(inputBuffer, gAudioIO->mCaptureFormat,
|
DoSoftwarePlaythrough(inputBuffer, gAudioIO->mCaptureFormat,
|
||||||
numCaptureChannels,
|
numCaptureChannels,
|
||||||
(float *)outputBuffer, (int)framesPerBuffer, 1.0f);
|
(float *)outputBuffer, (int)framesPerBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the results to outputMeterFloats if necessary
|
// Copy the results to outputMeterFloats if necessary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user