Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

PCM 16bit Sample Value 0x8000 on Media Foundation

$
0
0

The PCM audio sample values are SWORD (=2 bytes) of size.  signed int. Range -32768 ... +32767

All ok all on values of  -32767 .. +32767   

But on MF the MediaBuffer retreived by IMFSourceReader.ReadSample sometimes contains  a 0x8000 value in PCM buffer

On PCM in the past that value was always = -32768. (WavEditors show it as -1.0)

But if this value (occured on MF) is not changed into zero =0  then  on playback that wave data

audio causes distorted audio click sounds. Changing it to zero is ok.  but it slows performance of audio actions.

Is there a MF Media Flag / Attribute to avoid this  problem?


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>