Class SoundCloudMp3SegmentDecoder
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudMp3SegmentDecoder
-
- All Implemented Interfaces:
SoundCloudSegmentDecoder,java.lang.AutoCloseable
public class SoundCloudMp3SegmentDecoder 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 SoundCloudMp3SegmentDecoder(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
-
SoundCloudMp3SegmentDecoder
public SoundCloudMp3SegmentDecoder(java.util.function.Supplier<SeekableInputStream> nextStreamProvider)
-
-
Method Detail
-
prepareStream
public void prepareStream(boolean beginning)
- Specified by:
prepareStreamin interfaceSoundCloudSegmentDecoder
-
resetStream
public void resetStream()
- Specified by:
resetStreamin interfaceSoundCloudSegmentDecoder
-
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()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-