diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-10-08 11:04:15 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-10-08 11:04:15 +0200 |
commit | acc4b909771b4e1a1e5a341db4a10671b2bb13bd (patch) | |
tree | 72689e739cc827b98b93f4b1ca81a6c4e68fca0b /src/audioio.cc | |
parent | 3e05145199e5c28e6945013251d588d0da087387 (diff) |
Diffstat (limited to 'src/audioio.cc')
-rw-r--r-- | src/audioio.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audioio.cc b/src/audioio.cc index 2902b56..15cf71b 100644 --- a/src/audioio.cc +++ b/src/audioio.cc @@ -159,6 +159,8 @@ static int set_mixer_level(Mixer *m, unsigned int c, float l) { if(!m) return MISSING_MIXER_HANDLE; + //if((int)c > m->numberOfChannels() - 1) return NO_SUCH_CHANNEL; + if(m->setLevel(c, l)) return NO_SUCH_CHANNEL; return 0; } @@ -179,6 +181,8 @@ static int get_mixer_level(Mixer *m, unsigned int c, float *l) { if(!m) return MISSING_MIXER_HANDLE; + //if((int)c > m->numberOfChannels() - 1) return NO_SUCH_CHANNEL; + float lvl = m->level(c); if(isinf(lvl)) return INVALID_MIXER_LEVEL; *l = lvl; |