Esempio n. 1
0
pascal ComponentResult 
__StopSource( void *dummy, short count, SoundSource *sources )
{
	/* The mixer could have multiple sources, we should not stop
	 * the hardware unless there are no sources left...
	 */
	/* lprintf("__StopSource %d %08x\n", count, (int)sources[0] ); */

	/* StopHardware(); */
	return SoundComponentStopSource( GLOBAL.sourceComponent, count, sources );
}
Esempio n. 2
0
void	SMACsdec::StopSource(SInt16 inNumberSources, SoundSource*	inSources)
{
	//	get rid of the input data
	mSourceData = NULL;
	mOutputData.sampleCount = 0;
	
	//	reset the decoder
	if(mDecoder != NULL)
	{
		AudioCodecReset(mDecoder);
	}
	
	ComponentResult theError = SoundComponentStopSource(mSourceComponent, inNumberSources, inSources);
	ThrowIfError(theError, (CAException)theError, "SMACsdec::StopSource: got an error from SoundComponentStopSource");
}
Esempio n. 3
0
void	SMACscom::StopSource(SInt16 inNumberSources, SoundSource*	inSources)
{
	//	get rid of the input data
	mSourceData = NULL;
	mOutputData.desc.sampleCount = 0;
	mOutputData.bufferSize = 0;
	mOutputData.frameCount = 0;
	mOutputData.commonFrameSize = 0;
	
	//	reset the encoder
	if(mEncoder != NULL)
	{
		AudioCodecReset(mEncoder);
	}
	
	ComponentResult theError = SoundComponentStopSource(mSourceComponent, inNumberSources, inSources);
	ThrowIfError(theError, (CAException)theError, "SMACscom::StopSource: got an error from SoundComponentStopSource");
}