C# or C++?!?!?!
July 3, 2006 7:57 AM
Subscribe
C# or C++ for windows-based multimedia applications?
I usually work with Java, and have about zero knowledge of the internals of DirectX/Show/Sound. I want to access input streams from video cameras (or webcams or whatevs) and do audio output in close to real time. Is C# suitable for this or should I be putting time into C++ instead?
posted by beerbajay to computers & internet (20 comments total)
However, Managed DirectX is like a neverending adventure of new versions and minimal documentation. Everytime I've played with it, it feels only half baked. Half of the reason I'm giving you my only-slightly-informed option is I'm hoping someone else on AskMe will come along with a brilliant answer which says "yes, this is how to use DirectX with .NET!". Cuz in my casual research I haven't found anyone who can say that yet.
Two other issues with C#/.NET you should be aware of. 1: C# apps require the runtime be installed on the Windows machine. It's not quite as bad as needing Java, but if you're distributing your app you should consider whether your customers have or are willing to install a 20 meg runtime. 2: C# is garbage collected and I have no idea how well their GC works with latency-sensitive apps like video and games. After 10 years Java still hasn't really nailed this, don't know if .NET is better.
posted by Nelson at 8:07 AM on July 3, 2006