The Daily Click ::. Forums ::. Klik Coding Help ::. Stereo Sounds in MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Blue66



Registered
  24/05/2008
Points
  1186

GOTW JUNE 2010 WINNER!Hero of TimeVIP Member
23rd October, 2009 at 20:23:18 -

Hi!

I've searched the forums, articles and downloads high and low, but I couldn't find a proper way to make my sounds be in stereo. You know - sounds on the left side of the screen come from left speaker and sounds from right side of the screen come from right speaker.

The only thing I could find was the "pan" option with specific samples or channels in MMF2. But I couldn't find a fitting formula. When I was fooling around with X coordinates for the samples, it seemed like kinda random from where the sounds came... but maybe I'm just not that math-guy to figure an intelligent formula for this kind of thing :/

Anyone knows a clever solution to make the game have stereo sound?
Thanks for your help

 
www.paulinthenet.de
www.gungirl2.com

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
23rd October, 2009 at 21:28:07 -

The sound follows the cursor.

http://www.jsoftgames.com/3dsound.zip

You really have to crush the x position quite a lot in order for it to sound right. -30 to 30 sound decent to me.

 
n/a

Blue66



Registered
  24/05/2008
Points
  1186

GOTW JUNE 2010 WINNER!Hero of TimeVIP Member
23rd October, 2009 at 22:56:13 -

Thanks alot, this is a pretty cool example

PS: What does that "floor" expression mean?

 
www.paulinthenet.de
www.gungirl2.com

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
23rd October, 2009 at 22:58:24 -

Removes everything after the decimal place

ei 2312.3221 becomes 2312

It seemed to mess up when decimals were involved, so I used the floor expression to remove them.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click