Constructs an OpusProperties instance with the given read style.
Level of detail for property parsing.
Average bitrate in kilobits per second, computed from stream length and duration.
Number of audio channels as declared in the OpusHead header.
Original sample rate of the input audio before Opus encoding, in Hz.
Stream duration in milliseconds, computed from first and last granule positions.
Duration rounded to the nearest second.
Opus encoder version byte from the OpusHead header (major version in bits 4–7).
Output gain in signed Q7.8 fixed-point format. Divide by 256.0 to convert to dB.
Opus always decodes at 48000 Hz regardless of the original input sample rate.
StaticcreateAsynchronously parse and return audio properties from the given Ogg Opus file.
A populated OpusProperties instance.
Audio properties for Ogg Opus files, parsed from the OpusHead identification header (packet 0).
OpusHead layout: "OpusHead"(8) + version(1) + channels(1) + preSkip(2 LE) + inputSampleRate(4 LE) + outputGain(2 LE signed) + channelMappingFamily(1)