Mercurial > hg > pulseaudio
changeset 169:96e885ef985c
2008-10-08 Omair Majid <omajid@redhat.com>
* src/java/org/classpath/icedtea/pulseaudio/PulseAudioMixer.java
(getMaxLines): Return AudioSystem.NOT_SPECIFIED only for supported
formats.
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Wed, 08 Oct 2008 10:19:48 -0400 |
parents | c9645471db6c |
children | a3a8e9e19967 |
files | src/java/org/classpath/icedtea/pulseaudio/PulseAudioMixer.java |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java/org/classpath/icedtea/pulseaudio/PulseAudioMixer.java Wed Oct 08 10:09:48 2008 -0400 +++ b/src/java/org/classpath/icedtea/pulseaudio/PulseAudioMixer.java Wed Oct 08 10:19:48 2008 -0400 @@ -316,8 +316,16 @@ } @Override - public int getMaxLines(javax.sound.sampled.Line.Info info) { - return AudioSystem.NOT_SPECIFIED; + public int getMaxLines(Line.Info info) { + /* + * PulseAudio supports (theoretically) unlimited number of streams for + * supported formats + */ + if (isLineSupported(info)) { + return AudioSystem.NOT_SPECIFIED; + } + + return 0; } @Override