Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
package eu.buney.kopus

actual class OpusDecoder actual constructor(sampleRate: Int, actual val channels: Int) : AutoCloseable {
private var handle: Long = nativeCreate(sampleRate, channels)
private var handle: Long

init {
OpusLoader.load()
handle = nativeCreate(sampleRate, channels)
require(handle != 0L) { "Opus decoder create failed" }
}

Expand Down
Loading