From 4433c57d970f5c99eda5a6c60c50794a3ac8494e Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 3 Apr 2011 20:21:30 +0200 Subject: [PATCH] libtriple: implement cAudio::SetSyncMode() Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/2df67d32f47cbef60a4177884d9118aaf6c725c9 Author: Stefan Seyfried Date: 2011-04-03 (Sun, 03 Apr 2011) --- lib/libtriple/audio_td.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/libtriple/audio_td.cpp b/lib/libtriple/audio_td.cpp index 785094844..325fa0f66 100644 --- a/lib/libtriple/audio_td.cpp +++ b/lib/libtriple/audio_td.cpp @@ -131,9 +131,18 @@ bool cAudio::Pause(bool /*Pcm*/) 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)