OpusFile(baos).use { opusFile -> opusFile.info.setSampleRate(48000) opusFile.info.numChannels = 2 it.map { it.second } .map { decodePacket(it.data) } .forEach { val bytes = shortBufferToByteBuffer(it) val audioData = OpusAudioData(bytes) opusFile.writeAudioData(audioData) }}FileOutputStream("test.ogg").use { baos.writeTo(it)}
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'opus_decoder_create': The specified procedure could not be found.