From 5fea7ebbbb34038d725bc0c87f316216488c3e60 Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 18 Oct 2006 20:17:46 +0000 Subject: Audio track selection --- media_player.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/media_player.c b/media_player.c index 2fceae1b..68cc1e00 100644 --- a/media_player.c +++ b/media_player.c @@ -4,7 +4,7 @@ * See the main source file '.c' for copyright information and * how to reach the author. * - * $Id: media_player.c,v 1.11 2006-09-06 16:11:34 phintuka Exp $ + * $Id: media_player.c,v 1.12 2006-10-18 20:17:46 phintuka Exp $ * */ @@ -210,6 +210,17 @@ class cXinelibPlayer : public cPlayer { cXinelibPlayer(const char *file); virtual ~cXinelibPlayer(); + virtual void SetAudioTrack(eTrackType Type, const tTrackId *TrackId) + { + LOGMSG("cXinelibPlayer::SetAudioTrack(%d)",(int)Type); + char tmp[64]; + if(IS_DOLBY_TRACK(Type)) + sprintf(tmp, "AUDIOSTREAM AC3 %d", (int)(Type - ttDolbyFirst)); + if(IS_AUDIO_TRACK(Type)) + sprintf(tmp, "AUDIOSTREAM AC3 %d", (int)(Type - ttAudioFirst)); + cXinelibDevice::Instance().PlayFileCtrl(tmp); + }; + const char *Title(void); const char *File(void); const char **Playlist(void) { return (const char**)m_Playlist; } -- cgit v1.2.3