Answered by:
[UWP]How to convert AAC byte stream to PCM in UWP

Question
-
How to convert AAC byte stream to PCM before playing in UWP since AudioGraph - CreateFrameInputNode encoding properties accepts only PCM. How to play AAC byte stream in UWP using AudioGraph?
- Edited by Xavier Xie-MSFT Tuesday, June 20, 2017 6:46 AM add title tag
Friday, June 9, 2017 11:26 AM
Answers
-
I thought we have to convert AAC byte stream to PCM before playing it in UWP. After looking in MediaStreamSource class I understood there is no need for conversion. Solved the issue by supplying AAC data to MediaStreamSource. Used MediaPlayer to play MediaStreamSample data.
- Marked as answer by ArunrajShanmugam Thursday, June 22, 2017 7:22 AM
Thursday, June 22, 2017 7:22 AM -
I thought we have to convert AAC byte stream to PCM before playing it in UWP. After looking in MediaStreamSource class I understood there is no need for conversion. Solved the issue by supplying AAC data to MediaStreamSource. Used MediaPlayer to play MediaStreamSample data.
- Marked as answer by ArunrajShanmugam Thursday, June 22, 2017 7:26 AM
Thursday, June 22, 2017 7:26 AM
All replies
-
Hi ArunrajShanmugam,
Welcome to the Developing Universal Windows apps forum!
Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools
I found a same question in stark overflow about How to convert AAC byte stream to PCM in UWP. Is that you who asked the same question?
The problem seems to be solved by yourself according to the comment. If you do solve the issue, could you please make a reply to this question on MSDN and mark your reply as an answer? It would be helpful to other community members who're facing the same issue.
Best Regards
Roy Li
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Proposed as answer by Roy LiMicrosoft contingent staff Tuesday, June 20, 2017 6:51 AM
- Edited by Roy LiMicrosoft contingent staff Thursday, June 22, 2017 7:35 AM
- Unproposed as answer by Roy LiMicrosoft contingent staff Wednesday, July 12, 2017 2:16 AM
Monday, June 12, 2017 1:27 PM -
I thought we have to convert AAC byte stream to PCM before playing it in UWP. After looking in MediaStreamSource class I understood there is no need for conversion. Solved the issue by supplying AAC data to MediaStreamSource. Used MediaPlayer to play MediaStreamSample data.
- Marked as answer by ArunrajShanmugam Thursday, June 22, 2017 7:22 AM
Thursday, June 22, 2017 7:22 AM -
I thought we have to convert AAC byte stream to PCM before playing it in UWP. After looking in MediaStreamSource class I understood there is no need for conversion. Solved the issue by supplying AAC data to MediaStreamSource. Used MediaPlayer to play MediaStreamSample data.
- Marked as answer by ArunrajShanmugam Thursday, June 22, 2017 7:26 AM
Thursday, June 22, 2017 7:26 AM