Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:vitrivr/vitrivr-engine into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterl committed May 27, 2024
2 parents 1d19fff + 8c67e89 commit 0c8880b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@ class VideoDecoder : DecoderFactory {
if (emitAudio.size > 0) {
val samples = ShortBuffer.allocate(audioSize)
for (frame in emitAudio) {
frame.clear()
samples.put(frame)
}
samples.clear()
val audio = this.context.contentFactory.newAudioContent(grabber.audioChannels.toShort(), grabber.sampleRate, samples)
ingested.addContent(audio)
}
Expand Down

0 comments on commit 0c8880b

Please sign in to comment.