Opus seeking impl

custom
ailurux 1 year ago
parent c60bb9ee42
commit aece1c6b58
  1. 4
      src/codecs/opus.cpp

@ -128,6 +128,10 @@ auto XiphOpusDecoder::OpenStream(std::shared_ptr<IStream> input,uint32_t offset)
length = l * 2; length = l * 2;
} }
if (offset) {
SeekTo(offset * 48000);
}
return OutputFormat{ return OutputFormat{
.num_channels = 2, .num_channels = 2,
.sample_rate_hz = 48000, .sample_rate_hz = 48000,

Loading…
Cancel
Save