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
Soundfile not working
Efendi Offline
Junior Member

Posts: 13
Threads: 7
Joined: Sep 2013
Reputation: 0
#3
RE: Soundfile not working

(11-12-2013, 12:57 PM)Romulator Wrote: Firstly, for future reference:
PlaySoundAtEntity() only works with .snt files
and
PlayMusic() only works with .ogg files

Have you got the Ogg File with the .snt file as well, so you have both a .snt and .ogg file?
They should have the same filename and be in the same folder, or the .snt should point to the .ogg file in the <Sound File="general_piano03" /> line of the .snt
Example:
.../redist/MyCS/sounds/
   general_piano03.ogg
   general_piano03.snt

Thanks for the reply. I have both the .ogg and .snt file in the sounds folder. I have the same filename for them also.

I tried to change the .snt code like this:

Spoiler below!
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="general_piano03.snt" />
<Sound File="general_piano03.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="10" MinDistance="2" MaxDistance="40" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="True" Use3D="True" Blockable="False" BlockVolumeMul="0.8" Priority="2" />
</SOUNDENTITY>

But that didn't change anything. I can still hear the music, when i collide with the area, but it wont override the level music, and it wont loop. I will inform i manage to figure something out.
11-12-2013, 02:18 PM
Find


Messages In This Thread
Soundfile not working - by Efendi - 11-12-2013, 12:22 PM
RE: Soundfile not working - by Romulator - 11-12-2013, 12:57 PM
RE: Soundfile not working - by Efendi - 11-12-2013, 02:18 PM
RE: Soundfile not working - by Daemian - 11-12-2013, 04:18 PM
[SOLVED] Soundfile not working - by Efendi - 11-12-2013, 06:21 PM
RE: Soundfile not working - by Romulator - 11-12-2013, 03:08 PM
RE: Soundfile not working - by DnALANGE - 11-12-2013, 03:21 PM



Users browsing this thread: 1 Guest(s)