Hello,
I'm working on an alert program which is meant to play sounds... an unfortunately i don't want to play wav-files, so i cannot implement the standard player from .NET.
As far as i know the OpenNetCF framework is able to play also mp3 and wma, but i don't get it to work... neither wav nor wma or something else..
I'm developing with VB2008 and the code is here:
Dim audioStream As Stream
audioStream = File.OpenRead("chimes.wav")
Dim player As New OpenNETCF.Media.SoundPlayer
player.Stream = audioStream
player.Play()
the other way is
Dim player As New OpenNETCF.Media.WaveAudio.Player
player.Play(File.OpenRead("chimes.wav"))
for wav's only..
i'm getting always an error on the PC as well as on my smartphone, but i don't know why...
do you?
thanks
MCX