Sign in to follow this  
Guest laurentC

Scenery sounds

Recommended Posts

Hi all,To continue with the Danieletona previous post related to sounds in sceneries, I prepared a first dll that associates a sound to an object (or many) in a Snn scenery file.The zip (link below : 63 Kb) contains a complete example and descriptions of the way the dll can be used.This is a first attempt and it needs probably some improvements ...BTW sounds are not yet attached to posts, then I'm sorry I can't give here an example, eh, eh !http://rotw.simvol.org/beta/Project_Scener...S_SOUND_v10.zipCheers,laurentC (rotw)http://forums.avsim.net/user_files/106650.gif

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Laurent,can you check that ZIP file please!I loaded it two times but it seems to be corrupted, tried StuffIt and WinZip.Thanks a lotGeorg HeliFLYer EDDW

Share this post


Link to post
Share on other sites

Hi Laurent,thanks and compliments for your job. :-beerchug The DLL works but I has discovered a small BUG. :-( Because the DLL correctly works it needs to apply a sound to all the objects of a scenery. Example:If in a scenery I have three objects and I only apply a sound to a model, the DLL it doesn't work.Thanks still for your collaboration.Dan

Share this post


Link to post
Share on other sites

Hi Dan,I tried to add some trees to the D022171 data scenery I provided in the example and it works even if I have only three models with sounds and 5 without sound.See the scenerya.s01 below (txt format file included) ...But I noticed the sound type is important in order to have it work properly. I initially put the firebell.wav which has two related files (: firebell.vol and firebel.klp) and I saw that when the firebell was used all the other sounds were firebell !!! I think this kind of wav must be avoid and rather prefer raw wav files like the 172stall.wav file I put in place of the initial firebell.wavCheers,laurentC http://forums.avsim.net/user_files/106785.gif

Share this post


Link to post
Share on other sites

Hi Laurent,I have understood. A small trick that was escaped me :-)I retryDan

Share this post


Link to post
Share on other sites

Also Dan, remember to place each noisy object beyond the distance set in the wobj dll setting ... 0.5 NM right now... otherwise sounds are rendered in a messy way.HeliFlyer : I'll post the files non zipped for you.Cheers,Laurent

Share this post


Link to post
Share on other sites

Thanks Laurent.For a correct installation:The objects with sound must be position for last?It is worthwhile to create two files VOL and KLP associating them to a sound "mute"?Dan

Share this post


Link to post
Share on other sites

Hi Dan,I don't think the "sound" objets have to be placed at the end of the file. The dll should find by itself the names ID of the wobj.I'm not expert enough with sounds for the second question : I just noticed that sounds with VOL and KLP worked badly ... you need to experiment that issue ...Take care,laurentC

Share this post


Link to post
Share on other sites

Laurent,Do you automatically loop the sound file or do you play is just once?If you're looping it maybe the problem is that it's double looping it because that's what the KLP file is used for. The VOL is simply the volume so that shouldn't matter.Just my 2 cents...http://www.avsim.com/hangar/fly/dfdg/banneraa.jpg

Share this post


Link to post
Share on other sites

Thank you Laurent,now I could test your work and I had no problems except the already described "*.KLP" files and the persisting sound.But after all another possiblity for scenery enhancing!Georg HeliFLYer EDDW

Share this post


Link to post
Share on other sites

Hi Alejandro,do you have some information about the *.KLP format?I could not find it searching the Forum or looking into the SDK.pdf/flyscript.pdf.Some time ago I read that the 3 numbers describe playing once/loop, the time of playing ...Mostly I found a format like this1 0 0OR1 53528 0Any ideas?Thanks a lot in advanceGeorg HeliFLYer EDDW

Share this post


Link to post
Share on other sites

Georg,I can't get my sound editor to work in order to verify what I'm about to write. In fact, I can't get my sound card to work properly...Anyway, from what I recall the second is the point at which it should loop. I don't think I tried changing the first and last values. Maybe you can make it start at a point other than the very beginning. I'd have to try it...Sorry,http://www.avsim.com/hangar/fly/dfdg/banneraa.jpg

Share this post


Link to post
Share on other sites

Alejandro,anyway, thank you very much for your prompt answer. Might be someone knows better. Just read about Chris Wallace Wiki idea. That's really great for collecting technical infos we need.RegardsGeorg HeliFLYer EDDW

Share this post


Link to post
Share on other sites

Hi all,If you want and if you think it deserves to take some time to improve the dll I can try to manage a better way to use sound in sceneries.We can have looping sounds so far ... but maybe some loop controlled sound would be better ? I don't know what the sound scenery need to do for I never purchased the MSFS counterpart. The risk in non looping sound files is that the sounds may occur when you're too far from the object to ear them ... then nothing else when you come closer !???Cheers,laurent

Share this post


Link to post
Share on other sites

Hi Laurent,as for me I see very limited use of scenery sound in a flight simulator because you won't hear so much inside an aircraft.What is of interest for me is already covered by your dll (at least I think so until I have done some further tests).I could think of static aircraft on the ground with running engines (-> SOUND) and light on (your other dll) and I don't know if there is a possiblity to have flashing coloured strobes on static objects.That really could improve an airport scenery, especially at night.Or another application: emergency senery with hooting of sirens.Just as a feedback for you, otherwise there might be such a "lost" feeling after doing so much work for our sim ..RegardsGeorg HeliFLYer EDDW

Share this post


Link to post
Share on other sites

Georg,Regarding your question about static objects with lights. It IS possible to do so at least with ground vehicles, but (to the best of my knowledge) you are limited to white, red and green colors. Spot lights (with a cone) can only be white.You can change their behavior by using the strobe and beacon functions of the ELT file, or a flasher from the AMP file.Regards,http://www.avsim.com/hangar/fly/dfdg/banneraa.jpg

Share this post


Link to post
Share on other sites

Thank you Alejandro,I will have a look at these files as these features really could enhance the airport sceneries. And I think I may ask you if there are some questions left ..But this weekend I will have a look at the FLY! wiki stuff as I find it very important to contribute. I got much knowledge by searching this forum but there are 3 bad aspects: first you can only find what you ask for. Second there might be some information hidden in "the old forum" which was mentioned sometimes but I never could find it. Third is the time you need to have a look at all the posts which are displayed after you make a search.So Alejandro, one of the keepers of the FLY! secrets: you gave so many valuable help here. Would be nice to sample some of your answers and put it in the wiki.I will then first have a look at the AMP file and try do do a (coloured?) flasher. Would be great ..But - as TonyC always tells us - we should not forget to FLY!. So I split my spare time into 3 parts: FLY!ing, Forum/testing new things and programming my Landsat7 stuff. It all gets slow but it's a HOBBY!Have a nice weekend, I just made a walk with the dog through the new fallen snow here in Bremen.Best regardsGeorg HeliFLYer EDDW

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this