Sorry to be a pain about this but are you saying that the very simplest way
of playing a sound file from a .NET Windows Forms application necessitates
shipping the DirectX Managed Wrapper and DirectX itself? I mean geez, in
Visual Studio 6.0 a silly little multimedia control was, I believe,
automatically packaged in with the runtime, wasn't it? It just seems like
this is an awful lot of overhead for something as simple and bnasic as
playing a sound. Just confirm that there's no "lighter" way to do this and
I'll continue as you suggest. Thanks.
Alex
[quoted text, click to view] ""Peter Huang" [MSFT]" wrote:
> Hi
>
> In addition, DX 9.0c is included in Windows XP Service Pack 2.
> DirectX 9.0c Redistributable for Software Developers - Multilingual
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=9226A611-62FE-4F61- > ABA1-914185249413&displaylang=en
>
> If you can not make sure the enduser's OS version, it is better to ship it.
>
> Best regards,
>
> Peter Huang
> Microsoft Online Partner Support
>
> Get Secure! -
www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights.
>
I know this response is a bit late, but hopefully it will help you...
If you don't want to have to distribute the DirectX stuff with your code,
and you can deal with ONLY being able to play WAV files, you can use the
following 3 lines of code...
Dim sp as New System.Media.SoundPlayer
sp.SoundLocation = [full path or URL to the WAV file]
sp.Play( )
[quoted text, click to view] "Alex Maghen" wrote:
> I'm looking for the simplest, highest-level method for playing back .WAVs
> (and maybe .MP3s) from within a .NET Windows Forms app. I'm looking at the
> Managed DirectX SDK but I can't find any nice samples. This should be really
> simple: I don't need to select audio devices (use the default). I just need
> to select an audio file, start it playing, maybe stop it playing. Nothing
> more. A simple-sample would be much appreciated.
>
Don't see what you're looking for? Try a search.