Package paulscode.sound.libraries
Class ChannelLWJGLOpenAL
java.lang.Object
paulscode.sound.Channel
paulscode.sound.libraries.ChannelLWJGLOpenAL
-
Field Summary
FieldsFields inherited from class paulscode.sound.Channel
attachedSource, channelType, libraryType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanattachBuffer(IntBuffer intBuffer) intprivate booleanvoidcleanup()voidclose()intfeedRawAudioData(byte[] byte2) voidflush()voidpause()voidplay()booleanplaying()booleanpreLoadBuffers(LinkedList linkedList) booleanqueueBuffer(byte[] byte2) voidrewind()voidsetAudioFormat(AudioFormat audioFormat) voidsetFormat(int int2, int int3) voidstop()Methods inherited from class paulscode.sound.Channel
errorCheck, errorMessage, getClassName, importantMessage, message, printStackTrace, processBuffer
-
Field Details
-
ALSource
-
ALformat
public int ALformat -
sampleRate
public int sampleRate -
bufferBuffer
ByteBuffer bufferBuffer
-
-
Constructor Details
-
ChannelLWJGLOpenAL
-
-
Method Details
-
cleanup
public void cleanup() -
attachBuffer
-
setAudioFormat
- Overrides:
setAudioFormatin classChannel
-
setFormat
public void setFormat(int int2, int int3) -
preLoadBuffers
- Overrides:
preLoadBuffersin classChannel
-
queueBuffer
public boolean queueBuffer(byte[] byte2) - Overrides:
queueBufferin classChannel
-
feedRawAudioData
public int feedRawAudioData(byte[] byte2) - Overrides:
feedRawAudioDatain classChannel
-
buffersProcessed
public int buffersProcessed()- Overrides:
buffersProcessedin classChannel
-
flush
public void flush() -
close
public void close() -
play
public void play() -
pause
public void pause() -
stop
public void stop() -
rewind
public void rewind() -
playing
public boolean playing() -
checkALError
private boolean checkALError()
-