target_speaker mono file problem -1 reply

Please wait...

mike elf

:)

50 XP

12th January 2005

0 Uploads

83 Posts

0 Threads

#1 12 years ago

for the target speaker the .wav file (it cant be a mp3 file can it?) has to be in mono format, which it is, but all i get is hissing in my sp game. in the console it doesnt say that the wav file is in stereo so it definetly is in mono so it must be something else that it doesnt like.




Szico VII

We want FF7-2/remake!

50 XP

14th September 2003

0 Uploads

1,683 Posts

0 Threads

#2 12 years ago

it can be an mp3.

it need to be mono and sampled at 44,100Hz




mike elf

:)

50 XP

12th January 2005

0 Uploads

83 Posts

0 Threads

#3 12 years ago

yup thanks that worked perfectly. :) Im working on a cinematic which envolves dialogue now . My script looks like this (ive just looked at some other peoples script to kinda guess) Whats wrong with the bit in red? as theres no sound when i start the level soundprob.jpg




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#4 12 years ago

Well, specifically what's wrong is that the sound command is inside a task, but the task is never executed (DO or DOWAIT command). That's the whole idea of a Task: It needs to be launched at some point, and can be monitored with the wait("task") to know when it's finished.

HOWEVER: Do not try to time your sound files with the DOWAIT("task") or WAIT("task") commands. The engine cannot reliably monitor when a sound file has finished playing, and will thus present maybe 50% risk of screwing the general timings of your cinematics. So, time sounds just mechanically by placing wait(milliseconds) commands, if it's necessary to have the script halt until the sound has finished playing.




mike elf

:)

50 XP

12th January 2005

0 Uploads

83 Posts

0 Threads

#5 12 years ago

ah i see, looking at other scripts i didnt notice the connection of the do command - thanks, all working smoothly now. just a quick question, its hardly worth starting a new thread for this: what do i type in the console to get frames/sec to be shown




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#6 12 years ago

cg_drawFPS 1

If memory serves. I have had it on since day 1, so I don't exactly have a clear memory of how it was...