コード例 #1
0
ファイル: sdev.c プロジェクト: threader/Mac-On-Linux
pascal ComponentResult 
__SoundComponentPlaySourceBuffer( void *dummy, SoundSource sourceID,
				  SoundParamBlockPtr pb, long actions )
{
	ComponentResult result;

	/* lprintf("__PlaySourceBuf %08lx ID: %08x\n", actions, (int)sourceID ); */

	/* tell mixer to start playing this new buffer */
	result = SoundComponentPlaySourceBuffer( GLOBAL.sourceComponent, sourceID, pb, actions );
	if( result == noErr ) {
		/* if the kSourcePaused bit is set, then do not turn on your hardware 
		 * just yet (the assumption is that StartSource() will later be used to 
		 * start this sound playing). If this bit is not set, turn your
		 * hardware interrupts on. [Observation: QT calls PlaySourceBuf agin
		 * rather than StartSource]
		 */
		StartHardware();
		if( (actions & kSourcePaused) )
			PauseHardware();
		else
			ResumeHardware();
	}
	return result;
}
コード例 #2
0
ファイル: DomoticzHardware.cpp プロジェクト: remb0/domoticz
bool CDomoticzHardwareBase::Start()
{
	m_iHBCounter = 0;
	return StartHardware();
}
コード例 #3
0
void CLogitechMediaServer::Restart()
{
	StopHardware();
	StartHardware();
}
コード例 #4
0
ファイル: Kodi.cpp プロジェクト: joukio/domoticz
void CKodi::Restart()
{
	StopHardware();
	StartHardware();
}
コード例 #5
0
ファイル: PanasonicTV.cpp プロジェクト: jonlar/domoticz
void CPanasonic::Restart()
{
	StopHardware();
	StartHardware();
}
コード例 #6
0
ファイル: BleBox.cpp プロジェクト: IgorYbema/domoticz
void BleBox::Restart()
{
	StopHardware();
	StartHardware();
}
コード例 #7
0
bool CDomoticzHardwareBase::Start()
{
	return StartHardware();
}