mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added DeviceClrAvailableTracks() and DeviceSetCurrentAudioTrack() to cPlayer
This commit is contained in:
parent
7e0ffb0499
commit
dc22034e72
@ -1140,6 +1140,7 @@ Marco Schl
|
|||||||
for suggestions that led to the addition of the 'Id' parameter to cAudio::Play().
|
for suggestions that led to the addition of the 'Id' parameter to cAudio::Play().
|
||||||
for removing the "Cleared/PlayPes(NULL, 0)" handling from cTransfer::Action(), since
|
for removing the "Cleared/PlayPes(NULL, 0)" handling from cTransfer::Action(), since
|
||||||
this is now done when attaching the player to the device
|
this is now done when attaching the player to the device
|
||||||
|
for adding DeviceClrAvailableTracks() and DeviceSetCurrentAudioTrack() to cPlayer
|
||||||
|
|
||||||
Jürgen Schmitz <j.schmitz@web.de>
|
Jürgen Schmitz <j.schmitz@web.de>
|
||||||
for reporting a bug in displaying the current channel when switching via the SVDRP
|
for reporting a bug in displaying the current channel when switching via the SVDRP
|
||||||
|
2
HISTORY
2
HISTORY
@ -3396,3 +3396,5 @@ Video Disk Recorder Revision History
|
|||||||
is now done when attaching the player to the device (thanks to Marco Schlüßler).
|
is now done when attaching the player to the device (thanks to Marco Schlüßler).
|
||||||
- Making sure the buffer reserve in cTransfer::Action() is re-established after
|
- Making sure the buffer reserve in cTransfer::Action() is re-established after
|
||||||
clearing the buffer.
|
clearing the buffer.
|
||||||
|
- Added DeviceClrAvailableTracks() and DeviceSetCurrentAudioTrack() to cPlayer
|
||||||
|
(thanks to Marco Schlüßler).
|
||||||
|
4
player.h
4
player.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: player.h 1.15 2005/02/06 11:44:56 kls Exp $
|
* $Id: player.h 1.16 2005/02/12 14:45:29 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PLAYER_H
|
#ifndef __PLAYER_H
|
||||||
@ -19,7 +19,9 @@ private:
|
|||||||
cDevice *device;
|
cDevice *device;
|
||||||
ePlayMode playMode;
|
ePlayMode playMode;
|
||||||
protected:
|
protected:
|
||||||
|
void DeviceClrAvailableTracks(bool DescriptionsOnly = false) { if (device) device->ClrAvailableTracks(DescriptionsOnly); }
|
||||||
bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language = NULL, const char *Description = NULL) { return device ? device->SetAvailableTrack(Type, Index, Id, Language, Description) : false; }
|
bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language = NULL, const char *Description = NULL) { return device ? device->SetAvailableTrack(Type, Index, Id, Language, Description) : false; }
|
||||||
|
bool DeviceSetCurrentAudioTrack(eTrackType Type) { return device ? device->SetCurrentAudioTrack(Type) : false; }
|
||||||
bool DevicePoll(cPoller &Poller, int TimeoutMs = 0) { return device ? device->Poll(Poller, TimeoutMs) : false; }
|
bool DevicePoll(cPoller &Poller, int TimeoutMs = 0) { return device ? device->Poll(Poller, TimeoutMs) : false; }
|
||||||
bool DeviceFlush(int TimeoutMs = 0) { return device ? device->Flush(TimeoutMs) : true; }
|
bool DeviceFlush(int TimeoutMs = 0) { return device ? device->Flush(TimeoutMs) : true; }
|
||||||
void DeviceTrickSpeed(int Speed) { if (device) device->TrickSpeed(Speed); }
|
void DeviceTrickSpeed(int Speed) { if (device) device->TrickSpeed(Speed); }
|
||||||
|
Loading…
Reference in New Issue
Block a user