Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Play backgroung music?

2 views
Skip to first unread message

Arvind

unread,
Aug 30, 2004, 3:25:22 AM8/30/04
to
Is there any way to play the WMA / WAV files as the background music when my
application is launched??


--
Thanks,

Arvind

--
"eRiva Systems" - Where Technology Meets Life, Every Minute.

arv...@erivasystems.com

www.erivasystems.com


Anders Johansson

unread,
Aug 30, 2004, 4:41:09 AM8/30/04
to
Hi!

You can use SoundPlayer from OpenNETCF.

protected OpenNETCF.Windows.Forms.SoundPlayer soundPlayer = new
OpenNETCF.Windows.Forms.SoundPlayer();

.....

string sSoundLocation = @"\Windows\type.wav";
System.IO.FileInfo fi = new System.IO.FileInfo(sSoundLocation);
if(fi.Exists)
{
soundPlayer.SoundLocation = sSoundLocation;
soundPlayer.PlaySync();
}

......

Anders


"Arvind" <arv...@erivasystems.com> skrev i meddelandet
news:OGWpaLmj...@TK2MSFTNGP12.phx.gbl...

Arvind

unread,
Aug 30, 2004, 6:02:32 AM8/30/04
to
Thanks a lot for the INFO..

BTW:

is there any method where i can give the user interface to the user in which
he/she can adjust the tempo of the music played as background?

like 50 BPS,60,100,etc(beats per second)

is it possible?


--
Thanks,

Arvind

--
"eRiva Systems" - Where Technology Meets Life, Every Minute.

arv...@erivasystems.com

www.erivasystems.com

"Anders Johansson" <and...@nospam.se> wrote in message
news:uJVZexmj...@TK2MSFTNGP10.phx.gbl...

Peter Foot [MVP]

unread,
Aug 30, 2004, 9:17:23 AM8/30/04
to
The standard PlaySound API, which the SoundPlayer class uses, simply plays a
straight WAV file as-is. There isn't any functionality to dynamically alter
the audio. There is a wrapper around the waveOut* API functions in the Smart
Device Framework in the OpenNETCF.Multimedia namespace.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups

"Arvind" <arv...@erivasystems.com> wrote in message
news:O9TkMjn...@TK2MSFTNGP09.phx.gbl...

Arvind

unread,
Aug 31, 2004, 1:13:04 AM8/31/04
to
Ok..i have tried to play the WAV file as a background..in the application
and at the same time i want the WMP to open a seperate file as a part of
applicaiton functionality/..when that happens. the *.WAV file is stopped and
WMP takesover..

***********what is the problem here?and what should i do to rectify this ?

#when i was embedding the WMP in eVC++ applcation and open the WMP it plays
both the files..i mean the 2 WMP's (in applicaiton and expernal)

what i want to achieve is..

1.i want the background music to play always and user should also be able to
open video files in a seperate process..

2.is there any way to play WMA file as background..??????

--
Thanks,

Arvind

--
"eRiva Systems" - Where Technology Meets Life, Every Minute.

arv...@erivasystems.com

www.erivasystems.com

"Peter Foot [MVP]" <feed...@nospam-inthehand.com> wrote in message
news:uOSXwOpj...@TK2MSFTNGP12.phx.gbl...

0 new messages