Skip to content

How to play audio data decoded from mp4 with NAudio or waveOut API? #25

@iocmet

Description

@iocmet

Currently i copying unmanaged data[0] byte* array to managed byte[] with following code:

byte[] managed = new byte[resampledFrame.linesize[0]];
for (int i = 0; i < resampledFrame.linesize[0]; i++) {
managed[i] = resampledFrame.data[0][(uint) i];
}

It almost works, i can hear source sound but with lot of noise, what im doing wrong?

I using this example https://github.com/IOL0ol1/EmguFFmpeg/blob/dev/example/DemuxingDecoding.cs

And i can't record result that im getting because screen recorders ignores it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions