libtriple: implement cAudio::SetSyncMode()

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2df67d32f4
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-04-03 (Sun, 03 Apr 2011)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2011-04-03 20:21:30 +02:00
parent 45e01df015
commit 6d654a6ac3

View File

@@ -131,9 +131,18 @@ bool cAudio::Pause(bool /*Pcm*/)
return true; return true;
}; };
void cAudio::SetSyncMode(AVSYNC_TYPE /*Mode*/) void cAudio::SetSyncMode(AVSYNC_TYPE Mode)
{ {
lt_debug("%s\n", __FUNCTION__); lt_debug("%s %d\n", __FUNCTION__, Mode);
switch (Mode)
{
case 0:
ioctl(fd, MPEG_AUD_SYNC_OFF);
break;
default:
ioctl(fd, MPEG_AUD_SYNC_ON);
break;
}
}; };
void cAudio::SetStreamType(AUDIO_FORMAT type) void cAudio::SetStreamType(AUDIO_FORMAT type)