Jump to content


Photo

Control Sound Volume With FS


  • Please log in to reply
2 replies to this topic

#1 Marcelo peixoto

Marcelo peixoto

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationBrazil

Posted 20 June 2012 - 06:51 PM

Hi Pete!

Do you know a way to get the cabin sound level from FS?

I Want to get this value to use in my LUA sound.play, for the user controle it in Options > Settings > Sound > change the cabin sound value.

Some like this in lua

vol = FS.SoundCabin
sound.play("Eng1Fire" ,0 ,vol)

Tanks
  • 0

#2 Pete Dowson

Pete Dowson

    Advanced Member

  • Moderators
  • 27,046 posts
  • LocationNear Stoke-on-Trent, UK

Posted 20 June 2012 - 10:51 PM

Do you know a way to get the cabin sound level from FS?


Sorry, no. I suppose you could read it from the FS CFG file, assuming the user hasn't changed it since starting FS (the CFG file is only saved on FS exit).

Regards
Pete
  • 0

#3 Marcelo peixoto

Marcelo peixoto

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationBrazil

Posted 22 June 2012 - 10:55 PM

Ok!

Tanks for reply Pete!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


About simFlight - simflight.com - simflight.de - simflight.fr - simflight.nl - simflight.pt - simflight.es - simflight.it - simflight.jp - simrussia.com - simMarket