Play backgroung music?

  • Thread starter Thread starter Arvind
  • Start date Start date
A

Arvind

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.

(e-mail address removed)

www.erivasystems.com
 
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
 
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.

(e-mail address removed)

www.erivasystems.com
 
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
 
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.

(e-mail address removed)

www.erivasystems.com
 
Back
Top