Mercurial > hg > dmlib
changeset 141:0c9438a2c72a
Add function jvmGetMute() to get status of channel mute.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 05 Oct 2012 09:32:21 +0300 |
parents | 9894b63bb159 |
children | 69e3041032e9 |
files | jssmix.c jssmix.h |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/jssmix.c Fri Oct 05 09:31:55 2012 +0300 +++ b/jssmix.c Fri Oct 05 09:32:21 2012 +0300 @@ -659,6 +659,18 @@ } +BOOL jvmGetMute(JSSMixer * mixer, const int channel) +{ + BOOL tmp; + + JSS_LOCK(mixer); + tmp = mixer->channels[channel].chMute; + JSS_UNLOCK(mixer); + + return tmp; +} + + void jvmClear(JSSMixer * mixer, const int channel) { JSS_LOCK(mixer);
--- a/jssmix.h Fri Oct 05 09:31:55 2012 +0300 +++ b/jssmix.h Fri Oct 05 09:32:21 2012 +0300 @@ -149,6 +149,7 @@ int jvmGetPan(JSSMixer *mixer, const int channel); void jvmMute(JSSMixer *mixer, const int channel, const BOOL mute); +BOOL jvmGetMute(JSSMixer *mixer, const int channel); void jvmClear(JSSMixer *mixer, const int channel); void jvmClearChannels(JSSMixer *mixer);