Can we use AudioEngine on Windows Phone 7? - c#

I am porting a Windows XNA app to Windows Phone. It uses AudioEngine, SoundBank, Cue and WaveBank.
I am getting compile errors on Windows Phone 7 for these objects. Are these supported on Windows 7? If not, what's the path to port this stuff?
private Microsoft.Xna.Framework.Audio.AudioEngine audioEngine;
private SoundBank soundBank;
private WaveBank waveBank;
private Cue musicCue;

As per your previous question, no, XACT isn't supported on Windows Phone 7. MSDN (and Google search) is very clear about that.
And as for porting it, I recommend you read this blog post: Playing with Sound on XNA 4 WP7.
Next time, try do a little research yourself ;-)

Related

Microsoft.DirectX.AudioVideoPlayback alternative in SharpDX

I want to play a video, and this is how it is done in DirectX:
Microsoft.DirectX.AudioVideoPlayback.Video video = new Video(fileName);
video.Owner = panel1;
video.Play();
But I can't find AudioVideoPlayback in SharpDX, the DirectX API for .NET.
Is it supported in SharpDX? Any tip is appreciated.
For playing video in Windows 8.1 store apps and Windows Phone 8.1, the preferred method is using the XAML tools Microsoft provides in their framework that makes this fairly simple. See Quickstart: video and audio (XAML) for more details.
Managed DirectX was released in 2002[1] and based on DirectX 9. It has been deprecated for a while, which is why for users of managed code, libraries like SharpDX exist to provide a managed wrapper around the unmanaged (C++). In Windows Store and Windows 8.1 phone apps, DirectX 11 is required, which is why Managed DirectX wasn't working for you.

Windows 8.1 Universal apps documentation

I am trying to develop universal app for first time. This may be a silly question, but is there any comprehensive documentation for c# developing? I need to partially migrate windows 8 app to universal app, but everything I need to use is different there and nowhere I can find what to use instead. It takes hours to find something useful. Mostly here or at other forums. MSDN is not very helpful in this case. I found that universal apps do not use .net framework or silverlight. Is possible to say that universal apps uses clearly labeled standard, for example .net framework 4.5? In this time it seems to me I have to use something from Windows Runtime apps and something from Windows Store apps APIs.
The MS Virtual Academy offers free courses (mostly jumpstarts) for things you might be interested in.
Below is a link to their jumpstart course:
Developing Universal Windows Apps with HTML and JavaScript Jump Start
http://www.microsoftvirtualacademy.com/training-courses/developing-universal-windows-apps-with-html-and-javascript-jump-start
And a link to their jumpstart course:
Programming in C# Jump Start
http://www.microsoftvirtualacademy.com/training-courses/developer-training-with-programming-in-c
Hopefully, this will get you started.
What I was looking for:
Windows universal apps use Windows Runtime.
Only reliable official "MSDN like" page I found is http://msdn.microsoft.com/en-us/library/windows/apps/br211369.aspx
Good tutorials are at Channel 9.

Do Windows store apps supports custom gestures?

i'm beginner to creation Windows store apps. Do Windows store apps supports simple way to make custom touch gestures? I searched in MSDN and I found Tablet PC SDK 1.7 but it's written for Windows XP Tablet PC Edition. Thanks in advance
Yes. I'm using the MSGestureEvent in my javascript Windows Store apps but I'm sure there has to be something similar for C# (which I believe is your case)
Check out the Gestures and Manipulations sample: http://code.msdn.microsoft.com/windowsapps/Manipulations-and-gestures-362b6b59. Also see Responding to user interaction (http://msdn.microsoft.com/en-US/library/windows/apps/xaml/hh465397). And if the standard gestures and manipulations aren't enough, you can use Windows.UI.Input.GestureRecognizer to roll your own.

Can I run windows phone 8 on windows 8 RT and vice versa?

Can I run RT apps on windows phone, or windows 8 phone apps on windows 8 RT or PRO?
If I need to develop an app to run on RT tablets and on windows 8 phones, what should I do?
EDIT
When Microsoft will provide a unified way to develop apps????
Am I requested to develop tons of apps to run on all of Microsoft platforms, I am not an Apple fan at all, but Microsoft should learn more and more from them, I spent and am spending all of my time chasing Microsoft techniques, it is very very annoying!!! :(
No,
But you can share code through the use of Portable Class Libraries or linked files.
I recently wrote two articles about how to achieve this:
The first one is about whether to choose PCL's or linked files:
http://www.kenneth-truyers.net/2013/03/27/portable-class-libraries-or-source-code-sharing/
The second one is about how to work around the limitations of PCL's:
http://www.kenneth-truyers.net/2013/02/24/patterns-for-sharing-code-in-windows-phone-and-windows-8-applications/
No. The two runtimes are not compatible.
If I need to develop an app to run on RT tablets and on windows 8 phones, what should I do?
You can use the portable class libraries to save logic, but not the presentation code.
You would then build your UI on each platform, using the appropriate tools for the platform.
You can't just run a xap on a tablet. You CAN however take almost all of the XAML and C# uncompiled code and recompile for the tablet. You just need to fix some of the idiosyncrasies in the syntax. Same goes for Windows 8 Pro.

Wifi Direct in Windows 7 and WPF

I would like to have some basic communication between some apps we are building. I have been researching on wifi direct, which sounds perfect, but I cannot find much information on it for Windows 7 and WPF (C#).
When I search around all I seem to get is Windows 8 support and Android questions.
Is this a standard that has been implemented by Windows 7? Can I use the features in a C# WPF app? If so, some reference materials would be great if you know of any.
Thanks.
Wifi direct is not implemented in Windows 7, although there may be some 3rd party apps available that implement it.
It is a new feature built into windows 8. Here's a presentation that goes over the feature in detail: http://channel9.msdn.com/Events/Build/BUILD2011/HW-329T

Categories