Package paulscode.sound
Class Channel
java.lang.Object
paulscode.sound.Channel
- Direct Known Subclasses:
ChannelLWJGLOpenAL
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidcleanup()voidclose()protected booleanerrorCheck(boolean bool, String string) protected voiderrorMessage(String string) intfeedRawAudioData(byte[] byte2) voidflush()protected voidimportantMessage(String string) protected voidvoidpause()voidplay()booleanplaying()booleanpreLoadBuffers(LinkedList linkedList) protected voidprintStackTrace(Exception exception) booleanbooleanqueueBuffer(byte[] byte2) voidrewind()voidsetAudioFormat(AudioFormat audioFormat) voidstop()
-
Field Details
-
libraryType
-
channelType
public int channelType -
logger
-
attachedSource
-
-
Constructor Details
-
Channel
public Channel(int int2)
-
-
Method Details
-
cleanup
public void cleanup() -
preLoadBuffers
-
queueBuffer
public boolean queueBuffer(byte[] byte2) -
feedRawAudioData
public int feedRawAudioData(byte[] byte2) -
buffersProcessed
public int buffersProcessed() -
processBuffer
public boolean processBuffer() -
setAudioFormat
-
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() -
getClassName
-
message
-
importantMessage
-
errorCheck
-
errorMessage
-
printStackTrace
-