From patchwork Sat Mar 5 11:13:29 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Lucke X-Patchwork-Id: 11796 Received: from einhorn.in-berlin.de ([192.109.42.8] ident=root) by www.linuxtv.org with esmtp (Exim 4.34) id 1D7XDq-0003Yg-7F for vdr@linuxtv.org; Sat, 05 Mar 2005 12:13:26 +0100 X-Envelope-From: stefan@lucke.in-berlin.de X-Envelope-To: Received: from jarada.farpoint.de (p54BF3FBE.dip.t-dialin.net [84.191.63.190]) by einhorn.in-berlin.de (8.12.10/8.12.10/Debian-4) with ESMTP id j25BDTiD008880 for ; Sat, 5 Mar 2005 12:13:30 +0100 Received: from localhost (localhost [127.0.0.1]) by jarada.farpoint.de (Postfix) with ESMTP id ACB1914437 for ; Sat, 5 Mar 2005 12:13:29 +0100 (CET) From: Stefan Lucke To: vdr@linuxtv.org Date: Sat, 5 Mar 2005 12:13:29 +0100 User-Agent: KMail/1.5.4 References: <200503050813.27574.stefan@lucke.in-berlin.de> In-Reply-To: <200503050813.27574.stefan@lucke.in-berlin.de> MIME-Version: 1.0 Message-Id: <200503051213.29444.stefan@lucke.in-berlin.de> X-Spam-Score: (-1.398) AWL,BAYES_00,FORGED_RCVD_HELO X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: [vdr] Re: softdevice and audio selection X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2005 11:13:26 -0000 Status: O X-Status: X-Keywords: X-UID: 517 On Samstag, 5. März 2005 08:13, Stefan Lucke wrote: > On Freitag, 4. März 2005 21:38, Sad wrote: > > > Thanks for that great plugin! ;) > > > > BTW, I don't really know if it is softdevice related, but I can't get > > the second audio channel on my laptop PC using softdevice, while I can > > have it on my Xbox using xine-plugin + df_xine ... (that's why I think > > it is softdevice related) Can you try attached patch. > > Yes thats a softdevice problem. I thought that it works, but obviously > it doesn't. Currently I'm looking at that issue. ? .dependencies Index: mpeg2decoder.c =================================================================== RCS file: /cvsroot/softdevice/softdevice/mpeg2decoder.c,v retrieving revision 1.16 diff -r1.16 mpeg2decoder.c 306c306,308 < uint64_t cAudioStreamDecoder::GetPTS() --- > /* --------------------------------------------------------------------------- > */ > uint64_t cAudioStreamDecoder::GetPTS() 309c311,324 < }; --- > } > > /* --------------------------------------------------------------------------- > */ > void cAudioStreamDecoder::setStreamId(int id) > { > /* ------------------------------------------------------------------------- > * don't hook on DD stream > */ > if (id != 0x01bd) > { > streamID = id; > } > } 310a326,327 > /* --------------------------------------------------------------------------- > */ 1232a1250 > aout->setStreamId(Data[2]<<8|Data[3]); Index: mpeg2decoder.h =================================================================== RCS file: /cvsroot/softdevice/softdevice/mpeg2decoder.h,v retrieving revision 1.12 diff -r1.12 mpeg2decoder.h 105a106,107 > virtual void setStreamId (int id) {return;}; > 120a123 > virtual void setStreamId (int id); Index: softdevice.c =================================================================== RCS file: /cvsroot/softdevice/softdevice/softdevice.c,v retrieving revision 1.16 diff -r1.16 softdevice.c 287a288,293 > virtual void SetDigitalAudioDevice(bool On); > > protected: > virtual void SetAudioTrackDevice(eTrackType Type); > > public: 575a582,595 > } > > /* ---------------------------------------------------------------------------- > */ > void cSoftDevice::SetAudioTrackDevice(eTrackType Type) > { > //fprintf (stderr, "[SetAudioTrackDevice] (%d)\n",Type); > } > > /* ---------------------------------------------------------------------------- > */ > void cSoftDevice::SetDigitalAudioDevice(bool On) > { > //fprintf (stderr, "[SetDigitalAudioDevice] (%s)\n",(On)? "TRUE":"FALSE");