diff options
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; |