diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/com/jogamp/openal/test/manual/Synth02AL.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/com/jogamp/openal/test/manual/Synth02AL.java b/src/test/com/jogamp/openal/test/manual/Synth02AL.java index b7c7136..cdba19b 100644 --- a/src/test/com/jogamp/openal/test/manual/Synth02AL.java +++ b/src/test/com/jogamp/openal/test/manual/Synth02AL.java @@ -208,7 +208,7 @@ public final class Synth02AL { } System.err.println("OpenAL float32 supported: "+useFloat32SampleType); - sampleBuffer = allocate( audioFormat.getDurationsByteSize(30) ); // pre-allocate buffer for 30ms + sampleBuffer = allocate( audioFormat.getDurationsByteSize(30/1000f) ); // pre-allocate buffer for 30ms // clip [16 .. 2*AudioSink.DefaultFrameDuration] frameDuration = Math.max( 16, Math.min(2*AudioSink.DefaultFrameDuration, Math.round( 1000f*audioSink.getDefaultLatency() ) ) ); // ms |