mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed description of DeviceSetAvailableTrack() and cReceiver(), and added an example ~cMyReceiver() in PLUGINS.html
This commit is contained in:
16
PLUGINS.html
16
PLUGINS.html
@@ -1328,7 +1328,9 @@ A player that has special requirements about audio tracks should announce its
|
||||
available audio tracks by calling
|
||||
|
||||
<p><table><tr><td bgcolor=#F0F0F0><pre>
|
||||
bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language = NULL, uint32_t Flags = 0)
|
||||
<!--X1.5.10--><table width=100%><tr><td bgcolor=#FF0000> </td><td width=100%>
|
||||
bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language = NULL, const char *Description = NULL)
|
||||
<!--X1.5.10--></td></tr></table>
|
||||
</pre></td></tr></table><p>
|
||||
|
||||
See <tt>device.h</tt> for details about the parameters for track handling.
|
||||
@@ -1454,10 +1456,20 @@ public:
|
||||
};
|
||||
|
||||
cMyReceiver::cMyReceiver(int Pid)
|
||||
:cReceiver(0, -1, Pid)
|
||||
<!--X1.5.10--><table width=100%><tr><td bgcolor=#FF0000> </td><td width=100%>
|
||||
:cReceiver(tChannelID(), -1, Pid)
|
||||
<!--X1.5.10--></td></tr></table>
|
||||
{
|
||||
}
|
||||
|
||||
<!--X1.5.10--><table width=100%><tr><td bgcolor=#FF0000> </td><td width=100%><pre>
|
||||
cMyReceiver::~cMyReceiver()
|
||||
{
|
||||
cReceiver::Detach();
|
||||
...
|
||||
}
|
||||
<!--X1.5.10--></pre></td></tr></table>
|
||||
|
||||
void cMyReceiver::Activate(bool On)
|
||||
{
|
||||
// start your own thread for processing the received data
|
||||
|
Reference in New Issue
Block a user