changeset 1097:17eedb3bbfbd

2008-10-14 Ioana Ivan <iivan@redhat.com> * pulseaudio/src/java/org/classpath/icedtea/pulseaudio/PulseAudioClip.java (connectLine): changed bufferAttributes to fix crackling in the clip tests
author iivan@town.yyz.redhat.com
date Tue, 14 Oct 2008 17:08:32 -0400
parents 53383766dc24
children 654694c101ad
files ChangeLog pulseaudio/src/java/org/classpath/icedtea/pulseaudio/PulseAudioClip.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Oct 14 16:58:03 2008 -0400
+++ b/ChangeLog	Tue Oct 14 17:08:32 2008 -0400
@@ -1,3 +1,9 @@
+2008-10-14 Ioana Ivan <iivan@redhat.com>
+
+        * pulseaudio/src/java/org/classpath/icedtea/pulseaudio/PulseAudioClip.java
+        (connectLine): changed bufferAttributes to fix crackling in the clip tests
+
+
 2008-10-14 Omair Majid <omajid@redhat.com>
 
 	* pulseaudio/src/java/org/classpath/icedtea/pulseaudio/PulseAudioDataLine.java
--- a/pulseaudio/src/java/org/classpath/icedtea/pulseaudio/PulseAudioClip.java	Tue Oct 14 16:58:03 2008 -0400
+++ b/pulseaudio/src/java/org/classpath/icedtea/pulseaudio/PulseAudioClip.java	Tue Oct 14 17:08:32 2008 -0400
@@ -207,7 +207,8 @@
 	protected void connectLine(int bufferSize, Stream masterStream)
 			throws LineUnavailableException {
 		StreamBufferAttributes bufferAttributes = new StreamBufferAttributes(
-				bufferSize, bufferSize / 2, bufferSize / 2, bufferSize / 2, 0);
+				bufferSize, bufferSize / 4, bufferSize / 8,
+				((bufferSize / 10) > 100 ? bufferSize / 10 : 100), 0);
 
 		if (masterStream != null) {
 			synchronized (eventLoop.threadLock) {