Answered by:
Sink writer and C++/Cx

Question
-
I have a Windows Store app written in C# where I want to create a video from image files. When doing some research I saw that using a Sink Writer would be the right way to go. Looking at the some samples regarding audio/video editing (for example 'Media capture using capture device sample'), I need to use C++/WRL. But I also saw that there is C++/Cx, which is as I understand, the simplified version of C++ for WinRT. As I don't have any knowledge of C++ (I have a C# background), I don't know where to start and in what dialect of C++ I have to invest time in. My first guess would be C++/Cx, but I don't see any samples with that regarding audio/video.
Are there any samples or documentation for handling audio/video with C++/Cx? Is C++/Cx the language I have to invest time in regarding audio/video? And what would be the best approach to start this subject?
Thanks in advance!
Ronald
Monday, December 17, 2012 8:04 AM
Answers
-
- Marked as answer by Ronald Eekelder Sunday, January 13, 2013 9:28 AM
Sunday, January 13, 2013 9:28 AM
All replies
-
Hi,
Visual C++ component extensions (C++/CX) is a set of extensions to the C++ language that enable the creation of Windows Store apps and Windows Runtime components in an idiom that is as close as possible to modern C++.
As Windows Store App with C# cannot access Win32 API directly. So that the library like DirectX, WIC, MF, we should access them from C++/CX.
The lower layer is WRL, Here is the document of C++/CX hope it helps.
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh699871(v=vs.110).aspxBest regards,
JesseJesse Jiang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Proposed as answer by Jesse Jiang Thursday, December 20, 2012 2:16 AM
Wednesday, December 19, 2012 6:14 AM -
Thank you, but I still don't know if I have to use C++/CX or WRL in order to use Sink Writer. I ask this because all samples I see are with WRL.
Ronald
- Edited by Ronald Eekelder Thursday, December 20, 2012 9:51 AM
Thursday, December 20, 2012 9:50 AM -
- Marked as answer by Ronald Eekelder Sunday, January 13, 2013 9:28 AM
Sunday, January 13, 2013 9:28 AM