(svn r3552) Remove the global variable _mixer
This commit is contained in:
		@@ -42,7 +42,7 @@ static AudioUnit _outputAudioUnit;
 | 
			
		||||
/* The CoreAudio callback */
 | 
			
		||||
static OSStatus audioCallback(void *inRefCon, AudioUnitRenderActionFlags inActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, AudioBuffer *ioData)
 | 
			
		||||
{
 | 
			
		||||
	MxMixSamples(_mixer, ioData->mData, ioData->mDataByteSize / 4);
 | 
			
		||||
	MxMixSamples(ioData->mData, ioData->mDataByteSize / 4);
 | 
			
		||||
 | 
			
		||||
	return noErr;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
 | 
			
		||||
static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
 | 
			
		||||
{
 | 
			
		||||
	MxMixSamples(_mixer, stream, len / 4);
 | 
			
		||||
	MxMixSamples(stream, len / 4);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static const char *SdlSoundStart(const char * const *parm)
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,7 @@ static void FillHeaders(void)
 | 
			
		||||
 | 
			
		||||
	for (hdr = _wave_hdr; hdr != endof(_wave_hdr); hdr++) {
 | 
			
		||||
		if (!(hdr->dwFlags & WHDR_INQUEUE)) {
 | 
			
		||||
			MxMixSamples(_mixer, hdr->lpData, hdr->dwBufferLength / 4);
 | 
			
		||||
			MxMixSamples(hdr->lpData, hdr->dwBufferLength / 4);
 | 
			
		||||
			if (waveOutWrite(_waveout, hdr, sizeof(WAVEHDR)) != MMSYSERR_NOERROR)
 | 
			
		||||
				error("waveOutWrite failed");
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user