About Store Forum Documentation Contact



Post Reply 
[Solved] 3d sound in music theme
Author Message
Harry Offline
Member

Post: #1
[Solved] 3d sound in music theme
Can I play MusicTheme as 3d sounds?
(This post was last modified: 02-14-2011 11:24 AM by Harry.)
10-31-2009 11:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: 3d sound in music theme
you can't, you must use Sound or SoundPlay/PlaySound (dont remember which one) for 3d sounds
10-31-2009 02:02 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #3
RE: 3d sound in music theme
I've got this code:

Code:
Sound sound;
Code:
Init
  if(mt_radio0=MusicThemeNew()) // create mt_radio1 theme
   {
       *mt_radio0+="sfx/Radio/Cascada - Fever.ogg";
   }
   if(mt_radio2=MusicThemeNew()) // create mt_radio2 theme
   {
       *mt_radio2+="sfx/Radio/Saragossa Band - Agadou.ogg";
   }
Code:
update
if(radioNumber==2 && !radioPlaying)
        {
            radioName="FF Radio";
            sound.play("sfx/Radio/Cascada - Fever.ogg",radioPos,2,true);
            radioPlaying=true;
        }
Why when I delete line sound.play(...); and add Music.play(mt_radio0) I don't hear anything?
10-31-2009 03:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: 3d sound in music theme
where do you place "Music.play(mt_radio0)" ?

try doing it in a simple project (no game, just music), you can use music tutorials for testing.
10-31-2009 03:27 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #5
RE: 3d sound in music theme
I place it instead of sound.play
10-31-2009 03:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply