How can I play wave file on PocketPC

  • Thread starter Thread starter Mikhail Mikhalev
  • Start date Start date
M

Mikhail Mikhalev

Hello!

I want to play wave file on PocketPC with .NET CF, but I cant find any sample about this.
Anyone know if it is possible?

Thank you!


=====================================
Best Regards!
Mikhail Mikhalev (Game Craze)
 
The .NET CF itself does not support this. You can take a look at OpenNETCF.org's Smart Device Framework (http://www.opennetcf.org/PermaLink.aspx?guid=3a013afd-791e-45ef-802a-4c1dbe1cfef9), which contains support for playing and recording wave files (http://www.opennetcf.org/library/OpenNETCF.Multimedia.Audio.html).

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

Hello!

I want to play wave file on PocketPC with .NET CF, but I cant find any sample about this.
Anyone know if it is possible?

Thank you!


=====================================
Best Regards!
Mikhail Mikhalev (Game Craze)
 
Thank you!
I have already solved plroblem by myself - I just invoke PlaySound from
coredll


[DllImport("coredll")]

public static extern bool PlaySound( string filename, IntPtr hModule,

int flags );

I do not want to keep heavy-weight framework for one function.



The .NET CF itself does not support this. You can take a look at
OpenNETCF.org's Smart Device Framework
(http://www.opennetcf.org/PermaLink.aspx?guid=3a013afd-791e-45ef-802a-4c1dbe
1cfef9), which contains support for playing and recording wave files
(http://www.opennetcf.org/library/OpenNETCF.Multimedia.Audio.html).

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

Hello!

I want to play wave file on PocketPC with .NET CF, but I cant find any
sample about this.
Anyone know if it is possible?

Thank you!


=====================================
Best Regards!
Mikhail Mikhalev (Game Craze)
 
Mikhail:

The SDF isn't all that heavy weight and I'd seriuosly recommend taking a
look at the OpenNetCf Library. For one thing, you can use the code in
pieces which gives you the ability to just take waht you want. More
importantly though, if you are going to do anything of consequence with the
Compact Framework, it's almost guaranteed that you'll need to P/Invoke
something that's already been wrapped, tested and documented with OpenNetCF.
There are a lot of other native functions that aren't quite as easy to
implement as this, and finding the documentation is very difficult at times.
Take a look at it, you'll be glad you did,

Cheers,

Bill
 
Back
Top