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
Using custom sounds Problem =( [SOLVED]
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#1
Lightbulb  Using custom sounds Problem =( [SOLVED]

Hey =) So, i have just downloaded a voice acting track and i have cut it into the pieces i want using final cut, i then exported them into .ogg using Audacity, put them into a sounds folder in my custom story and placed them correctly in my script (using PlaySoundAtEntity functions) but it hasn't played a single one of them =( not one, I realised i might need a .snt version of each sound so i made a copy of each and changed them to .snt and placed them in the same folder in my custom story. Still nothing =( can anyone tell me what i'm doing wrong? =(

Thanks,

Edd
(This post was last modified: 05-09-2011, 07:54 PM by Simpanra.)
05-09-2011, 06:54 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#2
RE: Using custom sounds Problem =( [HELP PLEASE]

.snt files are just lists which says which files to play basically, you can edit the game's .snt files with notepad++ to see how they're built up.

Alternatively, you could use PlayGuiSound to test your sound since that will play .ogg files only, while playsoundatentity needs .snt.
05-09-2011, 06:56 PM
Find
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#3
RE: Using custom sounds Problem =( [HELP PLEASE]

Thank you =) i will test that now ^_^
(05-09-2011, 06:56 PM)Roenlond Wrote: .snt files are just lists which says which files to play basically, you can edit the game's .snt files with notepad++ to see how they're built up.

Alternatively, you could use PlayGuiSound to test your sound since that will play .ogg files only, while playsoundatentity needs .snt.

What is a good normal volume for a sound file using the PlayGUISound function?
I have tried using the PlayGuiSound function but it doesnt work =/ either than or 10 as volume is too quiet, but i dont think it is =/ The sound just wont play =( Someone please help me,
(This post was last modified: 05-09-2011, 07:24 PM by Simpanra.)
05-09-2011, 06:59 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#4
RE: Using custom sounds Problem =( [HELP PLEASE]

PlayMusic? You have to put them into Music folder instead tho
(This post was last modified: 05-09-2011, 07:39 PM by Khyrpa.)
05-09-2011, 07:38 PM
Find
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#5
RE: Using custom sounds Problem =( [HELP PLEASE]

(05-09-2011, 07:38 PM)Khyrpa Wrote: PlayMusic? You have to put them into Music folder instead tho

but how would i prevent them form looping? =/
05-09-2011, 07:40 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#6
RE: Using custom sounds Problem =( [HELP PLEASE]

There is this thing:
StopMusic(float afFadeTime, int alPrio);
and also:
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

abLoop - determines whether a music track should loop
so just put false in there and it should not loop
(This post was last modified: 05-09-2011, 07:42 PM by Khyrpa.)
05-09-2011, 07:41 PM
Find
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#7
RE: Using custom sounds Problem =( [SOLVED]

OMG!!!! *Hugs everyone who posted here* It works!!!! =D Thank you so much everyone! =DDDD

Edd,
05-09-2011, 07:54 PM
Find




Users browsing this thread: 2 Guest(s)