dh.javax.sound
Class BufferStrategy.Stream
java.lang.Object
dh.javax.sound.BufferStrategy.Stream
- All Implemented Interfaces:
- BufferStrategy
- Enclosing interface:
- BufferStrategy
public static class BufferStrategy.Stream
- extends Object
- implements BufferStrategy
Will stream the audio.
Positive: Uses so less memory as possible.
Negative: Depends on the speed of the underlying input stream and needs
cpu Time to decode the audio.
This approch should be used for larger or rare used sound files (for
example background music).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
audioInputStream
private final AudioInputStream audioInputStream
BufferStrategy.Stream
public BufferStrategy.Stream(AudioInput ai)
getAudioInputStream
public AudioInputStream getAudioInputStream()
- Specified by:
getAudioInputStream
in interface BufferStrategy
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.