dh.javax.sound
Class BufferStrategy.BufferUncompressed
java.lang.Object
dh.javax.sound.BufferStrategy.BufferUncompressed
- All Implemented Interfaces:
- BufferStrategy
- Enclosing interface:
- BufferStrategy
public static class BufferStrategy.BufferUncompressed
- extends Object
- implements BufferStrategy
Will store the uncompressed audio.
Positive: Needs extremly little cpu Time and don't depend on the speed of
the underlying input stream.
Negative: Needs very much memory.
This approch should be used for very often used and little sound files
(for example rifle fire).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
audioFormat
private final AudioFormat audioFormat
samples
private final long samples
byteBuffer
private final ByteBuffer byteBuffer
BufferStrategy.BufferUncompressed
public BufferStrategy.BufferUncompressed(AudioInput ai)
getAudioInputStream
public AudioInputStream getAudioInputStream()
- Specified by:
getAudioInputStream
in interface BufferStrategy
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.