Class SoundCloudOpusSegmentDecoder

    • 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:
        prepareStream in interface SoundCloudSegmentDecoder
        Throws:
        java.io.IOException
      • playStream

        public void playStream​(AudioProcessingContext context,
                               long startPosition,
                               long desiredPosition)
                        throws java.lang.InterruptedException,
                               java.io.IOException
        Specified by:
        playStream in interface SoundCloudSegmentDecoder
        Throws:
        java.lang.InterruptedException
        java.io.IOException
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception