Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am designing a custom media player in C++ using the Microsoft Media Foundation platform. I have most of the basic playback logic down. In order to improve the usefulness of the program, I also need to be able to detect any silence at the beginning or end of any compatible sound file, as well as perform audio normalization.

Based on research I've done thus far, this would involve employing the IMFSourceReader to extract all of the IMFMediaSample objects, and then for each sample extract any and all IMFMediaBuffer objects.

Upon locking the buffer, I'll have the byte of data contained therein. How do I interpret this data in such a way as to determine "loudness", and then manipulate the data to adjust loudness?
Posted
Updated 14-Aug-14 8:51am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900