diff options
author | jinx <@> | 2015-02-16 10:02:27 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2015-02-16 10:02:27 +0100 |
commit | 73ce4ba803d6a879e7ae0a005bd5f95952a0c8fc (patch) | |
tree | 50fc64838b481eacc4e1e01e4f831b9d0bd6d246 /softhddev.c | |
parent | 1d06c5ba59ff4175b9144764f9750f9143c066fb (diff) | |
download | vdr-plugin-softhddevice-73ce4ba803d6a879e7ae0a005bd5f95952a0c8fc.tar.gz vdr-plugin-softhddevice-73ce4ba803d6a879e7ae0a005bd5f95952a0c8fc.tar.bz2 |
Enable toggle AC3 downmix.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/softhddev.c b/softhddev.c index d0e32ee..79c5e31 100644 --- a/softhddev.c +++ b/softhddev.c @@ -1101,6 +1101,7 @@ int PlayAudio(const uint8_t * data, int size, uint8_t id) if (AudioChannelID != id) { // id changed audio track changed AudioChannelID = id; AudioCodecID = AV_CODEC_ID_NONE; + Debug(3, "audio/demux: new channel id\n"); } // Private stream + LPCM ID if ((id & 0xF0) == 0xA0) { @@ -1304,6 +1305,15 @@ void SetVolumeDevice(int volume) AudioSetVolume((volume * 1000) / 255); } +/** +*** Resets channel ID (restarts audio). +**/ +void ResetChannelId(void) +{ + AudioChannelID = -1; + Debug(3, "audio/demux: reset channel id\n"); +} + ////////////////////////////////////////////////////////////////////////////// // Video ////////////////////////////////////////////////////////////////////////////// |