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.
it can be an mp3.
it need to be mono and sampled at 44,100Hz
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
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.
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
If memory serves. I have had it on since day 1, so I don't exactly have a clear memory of how it was...