xiph / libopusenc

Library for encoding .opus audio files and live streams.
BSD 3-Clause "New" or "Revised" License
108 stars 39 forks source link

Support for OPUS_GET_EXPERT_FRAME_DURATION #20

Open maestroIgor opened 4 years ago

maestroIgor commented 4 years ago

I tried to get frame duration by calling ope_encoder_ctl, but this call ended up with an errorCode=OPE_UNIMPLEMENTED (-15). But as far as I can see this operation was long ago implemented in libopus. Why it is not available in libopusenc?

Code example:

  opus_int32 frameSize;
  int errorCode = ope_encoder_ctl(encoder_, OPUS_GET_EXPERT_FRAME_DURATION(&frameSize));

Libs versions: libopus - v1.3.1 libopusenc - master (commit 6e0a98cc0947d131640bf6816708cd940a0b8f08)