PDA

View Full Version : SIOC SOUND: How to make a looping sound?



stabell
10-28-2008, 08:39 PM
Hello!
I have put a sound for speedbrake in the SIOC folder.
Then, in SIOC Sound.ini, I have told it to be sound number 0800,
and written in my SIOC script that when the speedbrake > 1000, then play sound.
It works actually like a charm, but it does not loop.
Then I read that I'm supposed to put an asterix in front of the filename in SIOC sound.ini,
like

[ #800]
Sound=*spoiler.wav,-1,-1,-1

But as soon as I put the "*" in front of the filename, SIOCSound tells me that the file cannot be found.

Then I see somesthing about the SIOC.ini, where there is also a SOUND section? Is that in addition to te sound section in the SIOC Sound.ini?

If anyone knows how to loop a sound, when the speed brake is on, I'm glad to hear about it.

GaryC
10-29-2008, 07:39 AM
Hi

The only problem I can see is it may have to do with the sound number. If you use the Config_SiocIni program to create this file it will generate the sound number for you. If this is the only sound file you are using then your ini file should read as follows:-

[#1]
Sound=*spoiler.wav,-1,-1,-1

You can correct this by simply loading your ini file into the Config_SiocIni program and then save it. It will now have numbered the sound file correctly.

Hope this makes sense.

Gary

Suggy
10-29-2008, 04:56 PM
I have put my sound commands in the SIOC.ini file and NOT in the the IOCSOUND.ini file. The actual sound files (wave file) are in the main SIOC folder.
For example, below is what i have in the SIOC.ini file:

[************** SOUND MODULE ***************]

[ Ficheros de sonido ]
[ Sound Files ]

[ Desactivar el módulo de sonido ]
[ Disable Sound module ]
Sound_disable=no

[ Volumen general de los sonidos 0-100 ]
[ Master Volume 0-100 ]
Volume=100


[ put '*' first filename for loop Sound ]
[ anteponer '*' en el fichero para bucle continuo de sonido]

[ Sound=wav_file,frequency,volume,pan ]
[ frequency=100 to 100000 0=original -1=current ]
[ volume=0 to 100, -1=current ]
[ pan=-100 (left) to +100 (right) 0=center -1=current ]

[ Sound=Fichero_wav,frecuencia,volumen,balance ]
[ frecuencia=100 hasta 100000 0=original -1=Por defecto ]
[ volumen=0 hasta 100 -1=Volumen por defecto ]
[ balance=-100 (Izquierda) hasta +100 (Derecha) 0=centro -1=Por defecto ]

[ #1 ]
Sound=*nwiper.wav,-1,40,-100

[ #2 ]
Sound=*ambientmusic2.wav,-1,20,-1

[ #3 ]
Sound=*CVRtest.wav,-1,50,-1

[ #4 ]
Sound=*aircabin.wav,-1,-1,-1

[ #5 ]
Sound=cabinbell.wav,-1,-1,-1


Regards,
Darren

stabell
10-29-2008, 07:27 PM
Thank you, guys.
Im struggling here!
I am not using Config_Sioc,
I am trying to understand codes by writing it myself.
So I am having a look at that.
Suggy:
Is your IOCSOUND.ini empty? Or have you defined the start of the sound variables?
(like "IOCP_INI_VAR=10")?
So in your example, do you have

if something > 100
v0010 = 1

and the nwiper will play in loop?