PDA

View Full Version : PMsounds and offsets



themax222
01-30-2010, 12:25 PM
Hello,

Can I play sounds on other FSUIPC offsets than PM offsets with PmSounds ? I'm using other software but want to play some sounds on offsets. Here's an example :

Offset 6EDB changes to 1 to disengage the AP and then automatically reset to 0

I want to play the disengage sound when this happens.

Any solution ?

Thanks,

Maxime.

Jan737
01-31-2010, 04:19 AM
Hi Maxime,

Yes you can.
Go to your soundlist.txt file in the PMsound folder.
Add a line `yoursound,6DBE, .0,1,on` (this is a example)
Put yoursound in the pm sound folder.

Best regards

Jan Geurtsen

themax222
01-31-2010, 05:04 AM
It doesn't work :-(

I set this : 'FDSAPdisco, 6EDB, .0, 1, on' but this doesn't work.

Here is info about the offset :

Offset : 6EDB
Size : 1
Autopilot disengage switch : write 1 to toggle. Value is reset to 0 after reading

(Writing bitvalues is equal to writing 1,2,4,8,... So to write bit 1 write 1, bit 4 write 8, etc)

What am I doing wrong ?

Thanks,

Maxime.

Jan737
01-31-2010, 05:45 AM
Hi Maxime,

There are examples in the soundlist.txt.
Use the one who is not setting a bit.


And (Writing bitvalues is equal to writing 1,2,4,8,... So to write bit 1 write 1, bit 4 write 8, etc)

bit 4 = 2^4 = 2 x 2 x 2 x 2= 16

Jan

eudoniga
02-26-2010, 08:12 AM
Look, here's my two cents:

there is already one default sound file that plays upon A/P, and it's called napdisco.wav
One simple workaround for this, but only for this: backup the original napdisco.wav, save your FDSAPdisco.wav as napdisco.wav ... and the trick is done ! Remember to check that the single file is allowed to play from within the executable.

As for the syntaxe you used, it looks like there are two mistakes:

you pointed to single bit, the first bit (value: .1), and not to the whole byte (value: 1)
you forgot to add the parameter ON at the end of the row.

This tells PMSpunds to play that file when that bit/byte (whose value when active is 1) is switched ON
Same story if you specify OFF, CHANGE
If you specify CYC, it will cycle the sound as long as the bit/byte is active (= has that value).

Maybe it's clearer now ?ù

hope so ...

Happy landings and always three greens

themax222
02-27-2010, 04:41 AM
Thanks for answer,

but it doesn't work. I tested it on an offset that stays on 1 or 0 and this worked. But my autopilot disengage offset resets to 0 after reading : it doesn't work :-(

tss, 6EDB, 1, 1, on

Thanks for help,

Maxime.

eudoniga
03-04-2010, 09:45 AM
.. uhm ...

If so, how about trying with the value option "CHANGE" instead of "ON" ?

It should reflect even the temporary change you mentioned.

And it shouldn't play also when A/P is engaged, if it's truly a "A/P disengage" offset ...

Worth trying, I guess.

Good luck !

themax222
03-04-2010, 02:00 PM
Also tried and I get 2 sounds played. One plays when I press the button and it switches to 1 and it is played a second time when it resets automatically to 0 :-(

Maxime.

Schraddel
01-27-2011, 08:07 AM
Hello Maxime,

maybe you found a solution in the meanwhile. If not..maybe this further example will help.

http://www.my737sim.com/2009/11/22/added-stall-warning-and-overspeed-sounds-to-pmsounds/

I'm playing around with PMsounds too and found out now that you have to put the sound you want to play in the ini-file too. I thought all parameters I can put in the soundlist..but thats not enough.
I will give it a try this evening and hope it works.

Cheers, Kai

my737sim
01-28-2011, 02:05 AM
Wish I could help more on this. I'm currently using SimA so haven't touched pmsounds in about a year. I forgot how I figured that code out. But maybe a google of the subject may help. Anyhow hope you get it going the way you want!

Blue Skies!

Matt

Nick1150
01-28-2011, 02:27 AM
Thanks for answer,

but it doesn't work. I tested it on an offset that stays on 1 or 0 and this worked. But my autopilot disengage offset resets to 0 after reading : it doesn't work :-(

tss, 6EDB, 1, 1, on

Thanks for help,

Maxime.Just a stupid thought ?

Try this: tss, 6EDB .1,1,on There is no space before on and both parameters

eschiratti
02-05-2011, 04:03 AM
It should work fine. Just make sure the WAV or MP3 file you are referencing is in your \Sounds subfolder.

Schraddel
02-05-2011, 07:06 AM
Yes, I can confirm. It work like a charm.

Thank you.
Cheers, Kai