Skip to content

Decoding Audio Track #1996

@edwardsPaul421

Description

@edwardsPaul421

Summary

Hello,
I'm trying to write the audio I receive to PulseAudio Source-Output using Pulseaudio Simple API . Therefore, I need to decode my track from OPUS to PCM format.
I'm using hraban opus lib to decode the Payload of the track.
I get the decoded payload in PCM format in a int16[]. But, in order to write it to my pa source I need to write []byte.
I'm doing the conversion like that : binary.Write(stream, binary.LittleEndian, pcm).
However, when I play the audio I have a bit of "metalic voice" and cuts.
The problem is when writing the track using oggwriter, It works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions