diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-12-09 20:16:17 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-12-09 20:16:17 +0100 |
commit | 73e56c71ee9e8a996a62a3f465dcbc161abb5b4c (patch) | |
tree | 66d8bd57a330b32f9e58ad267f257c663956b45b /dxr3audio-oss.c | |
parent | 42bf76053d336d4db646bde9f2a6a8cd6b79454e (diff) | |
download | vdr-plugin-dxr3-73e56c71ee9e8a996a62a3f465dcbc161abb5b4c.tar.gz vdr-plugin-dxr3-73e56c71ee9e8a996a62a3f465dcbc161abb5b4c.tar.bz2 |
add a way to enable/disable audio via iAudio
As all audio realated stuff uses iAudio I added a way
to control if write gets called or not. This depends if
it was enabled or not. Also I did changes to the demuxer to
call the new method instead of the old stub. I am not happy to
have that chain:
m_pAudioThread->audio()->setEnabled(false)
Need some time to redesign this part.
Diffstat (limited to 'dxr3audio-oss.c')
-rw-r--r-- | dxr3audio-oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dxr3audio-oss.c b/dxr3audio-oss.c index 9f3409d..4e70df4 100644 --- a/dxr3audio-oss.c +++ b/dxr3audio-oss.c @@ -73,7 +73,7 @@ void cAudioOss::setup(const SampleContext& ctx) void cAudioOss::write(uchar* data, size_t size) { - if (!open) + if (!open || !enabled) return; size_t ret = WriteAllOrNothing(fd, data, size, 1000, 10); |