Shaun
Shaun
Explore posts from servers
KKord
Created by Shaun on 11/27/2024 in #help
Dependency conflicts...
I just noticed
6 replies
KKord
Created by Shaun on 11/27/2024 in #help
Dependency conflicts...
Hmm wait there is a beta version
6 replies
KKord
Created by Shaun on 11/27/2024 in #help
Dependency conflicts...
6 replies
KKord
Created by Shaun on 11/27/2024 in #help
Dependency conflicts...
I checked, it's already merged, just not released
6 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
not 2
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
Okay yea it was 1 channel
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
I've managed to save it as a wav file, but it's too fast now lol
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
Okay I'm fucking ogg off
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
But I don't see where to specify that on the audio output
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
The opus decoder decodes to a 16 bit 2 channel format
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
So must be something with the raw > vorbis failing
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
If I write the raw data to a raw file and import raw to audacity, I can hear the audio
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
But it's corrupt as I can't play the file...
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
Okay I have managed to write the stream to a file
115 replies
KEKord Extensions
Created by Shaun on 11/27/2024 in #kordex-support
It's that time again
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)
}
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)
}
95 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
I'm not sure what to do
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
Now I'm getting Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'opus_decoder_create': The specified procedure could not be found.
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
My head is litearlly blowing off
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
omg the decoder forces me to use a short array, but the other things expects a byte array
115 replies
KKord
Created by Shaun on 11/27/2024 in #help
Opus stream to wav?
So many c wrappers with no docs
115 replies