Share via

WinRT: Grab audio buffer from AdaptiveMediaSource

Bruno B 1 Reputation point
2022-08-02T20:22:28.567+00:00

Hello,

I am looking for a way to grab the audio buffer of an AdaptiveMediaSource in the WinRT API. My objective is to pass the buffer to another sound engine.
I have found this sample: https://github.com/microsoft/Windows-universal-samples/tree/main/Samples/AdaptiveStreaming

However, I haven't found a way to grab the audio buffers via the different callbacks. Ideally, I'd want the audio buffers as they are ready to be played, not necessarily as they get downloaded.

Any help would be appreciated!!

Bruno

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.