play two wav at a time

Login to reply to this topic.
Thu, 2003-06-05 03:24
Joined: 2003-06-05
Forum posts: 26
i'm using VC++ 6.0 to build a shooting game  Wink  
and i need to know how to play two wav file at a time.
One for the background music and the other for the
shooting sound ....  

Embarassed  Thank you

Thu, 2003-06-05 08:18
Joined: 2003-05-27
Forum posts: 363
play two wav at a time
Hi there,

Playing a single sound file is straightforward ( there are numerous examples in forums etc) but if you aim at multiple channels, things get more complicated. At least on some Series60 devices you will have to mix the sound streams yourself.

Regards,
Pawel
Thu, 2003-06-05 09:39
Joined: 2003-04-01
Forum posts: 37
play two wav at a time
Hi all,

I am trying to write a mixer for s60, anybody intereted in work together?
And now, I am studying the audio engine `SIDPLAY' ...

Cheers,
OuseKa

ouseka

Fri, 2003-06-06 02:47
Joined: 2003-06-05
Forum posts: 26
CoeSoundPlayer
Can i use this CoeSoundPlayer  Huh: cause i saw that there is this
PlaySoundNow() -> Plays the specified sound, interrupting any
other sound that is currently playing.
Or CMdaAudioOutputStream  Huh: SetAudioPropertiesL() that
changes the sample rate and number of channels.

I very new in using C++ Sad  so i not very sure how this function works....
or how to use them......

Embarassed Thank you for helping me
Fri, 2003-06-06 02:55
Joined: 2003-04-01
Forum posts: 37
play two wav at a time
Hi,

Read the topics posted by zeep, then you can have your idea Smiley

http://newlc.com/forums/viewtopic.php?t=82

ouseka

ouseka

Fri, 2003-07-25 11:53
Anonymous (not verified)
Forum posts: 2043
play two wav at a time
Hi,
I followed Zeep's tutorial, and made mixing done in two days. Even I ported my PC mod player into EPOC.

The task is very similar to sound players for old SoundBlaster cards, where you had to set up single circular playback buffer using DMA and feed it with data. Of course, settings are different, but principle is the same.

It's even easier that you have to deal only with 16 bits (no 8-bit sound hw support).

Have fun.
Michal
  • Login to reply to this topic.