Class SoundCloudOpusSegmentDecoder
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudOpusSegmentDecoder
-
- All Implemented Interfaces:
SoundCloudSegmentDecoder,java.lang.AutoCloseable
public class SoundCloudOpusSegmentDecoder extends java.lang.Object implements SoundCloudSegmentDecoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudSegmentDecoder
SoundCloudSegmentDecoder.Factory
-
-
Constructor Summary
Constructors Constructor Description SoundCloudOpusSegmentDecoder(java.util.function.Supplier<SeekableInputStream> nextStreamProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidplayStream(AudioProcessingContext context, long startPosition, long desiredPosition)voidprepareStream(boolean beginning)voidresetStream()
-
-
-
Constructor Detail
-
SoundCloudOpusSegmentDecoder
public SoundCloudOpusSegmentDecoder(java.util.function.Supplier<SeekableInputStream> nextStreamProvider)
-
-
Method Detail
-
prepareStream
public void prepareStream(boolean beginning) throws java.io.IOException- Specified by:
prepareStreamin interfaceSoundCloudSegmentDecoder- Throws:
java.io.IOException
-
resetStream
public void resetStream() throws java.io.IOException- Specified by:
resetStreamin interfaceSoundCloudSegmentDecoder- Throws:
java.io.IOException
-
playStream
public void playStream(AudioProcessingContext context, long startPosition, long desiredPosition) throws java.lang.InterruptedException, java.io.IOException
- Specified by:
playStreamin interfaceSoundCloudSegmentDecoder- Throws:
java.lang.InterruptedExceptionjava.io.IOException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-