Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Piano Music Wont Stop?(goto post #4)
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#1
Piano Music Wont Stop?(goto post #4)

Hey there, i'm having problems with some of the custom music im using in my map. Its playing fine and it is playing from the Phonogram entity, but its not very "3D". I do have it set to 3d in the .snt settings but i cant seem to get it to work. i have the volume and distance set as to how i want, but it just doesn't sound real...

Any suggestions?

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 12-31-2011, 07:24 AM by Tripication.)
12-30-2011, 06:08 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Surround Sound Custom Music?

Can you post the .snt text?

12-30-2011, 06:18 AM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#3
RE: Surround Sound Custom Music?

(12-30-2011, 06:18 AM)flamez3 Wrote: Can you post the .snt text?
I used the properties from the door_closed.snt



<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="Hanna" />
</Main>
</SOUNDS>
<PROPERTIES Volume="3" MinDistance="0.5" MaxDistance="12" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
12-30-2011, 06:42 AM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#4
RE: Surround Sound Custom Music?

Ok, disregard the last idea, I am now following this(to a certain extent) http://www.youtube.com/watch?v=EhUjbK_vEhM

and i have this


void OnStart()
{
AddEntityCollideCallback("Player", "PianoStop", "PianoStop", true, 1);
PlaySoundAtEntity("", "general_piano04", "Piano", 0, false);
}

void PianoStop(string &in asParent, string &in asChild, int alState)
{
StopSound("general_piano04", 0);
}


It is suppose to make the piano sound stop playing when i come into near contact with the piano, but it doesnt stop...

Anything wrong with the script?

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 12-30-2011, 11:41 AM by Tripication.)
12-30-2011, 11:40 AM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#5
RE: Piano Music Wont Stop?(goto post #4)

You might need to use the sound's name to identify the sound:

void OnStart()
{
AddEntityCollideCallback("Player", "PianoStop", "PianoStop", true, 1);
PlaySoundAtEntity("Piano_Sound1", "general_piano04", "Piano", 0, false);
}

void PianoStop(string &in asParent, string &in asChild, int alState)
{
StopSound("Piano_Sound1", 0);
}
(This post was last modified: 12-30-2011, 03:57 PM by Apjjm.)
12-30-2011, 03:57 PM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#6
RE: Piano Music Wont Stop?(goto post #4)

(12-30-2011, 03:57 PM)Apjjm Wrote: You might need to use the sound's name to identify the sound:

void OnStart()
{
AddEntityCollideCallback("Player", "PianoStop", "PianoStop", true, 1);
PlaySoundAtEntity("Piano_Sound1", "general_piano04", "Piano", 0, false);
}

void PianoStop(string &in asParent, string &in asChild, int alState)
{
StopSound("Piano_Sound1", 0);
}
That was it, thanks for that. +1 rep


[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
12-31-2011, 07:04 AM
Find




Users browsing this thread: 2 Guest(s)