Sign in to follow this  
Guest iholrf

DSD sound and other devel packages

Recommended Posts

Hi gang,I have been slowy putting together a repositiry of some of the best freeware packages for FS utilities and development.The list is in its infancy at the moment, but already I have a lot of useful tools available.Doug Dawson was kind enough to give me the latest version of DSD_XML_Sound (3.6) as well as XML ID which will expose the L:VARS in the running sim.http://www.ascendant-online.net/en/downloa...htsim.php#develI would really like to add more quality tools. I do not intend to be a dumping ground like AVSIM lib, I do not have the bandwidth for that, but a specialized "best of" repository.You can grab the stuff here. If you have a suggestion for a package that is missing, please drop me a note.http://www.ascendant-online.net/en/downloads/index.phpCheersShad

Share this post


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

OMG, If I hadn't visited your site I wouldn't have known there was a new version of dsd_xml_sound with VOLUME CONTROL and PANNING! Now I can put all those little volume knobs to use in the VC:)Thanks to you both,--Jon

Share this post


Link to post
Share on other sites

Hi,Didn't knew either.Can you give an example for volume control?Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

From Dougs readme (good job on that BTW Doug)."Two new functions have been added to each sound's control variable. Both make use of the L:Var L:dsd_xml_sound_volume.To set the volume of a sound, set L:dsd_xml_sound_volume to the desired volume, as described above. Then write a value of 3 to the sound's control variable. Setting volume level in this manner can be done on the fly, while the sound is playing.To get the current volume level of a sound, write a value of 4 to the sound's control variable. The current volume level will be returned to L:dsd_xml_sound_volume. This function can also be performed while a sound is playing, if desired.Left/Right Channel Balance.I have made use of the DirectSound SetPan function to allow the Left/Right balance to be manipulated. This function can only be performed when the initial command to play the sound is given. Here is how to do it:The range, from maximum left pan, to maximum right pan, is specified as an integer between -10,000 (full left) and 10,000 (full right).Take the absolute value of the desired setting.Multiply it by 100.Add the value obtained to the desired control variable setting (1 for play once, 2 for loop).Multiply the result obtained by -1 if a left pan is required.Write this value to the control variable."

Share this post


Link to post
Share on other sites

OK(?)Confusing(!)What to do?Here is the sound.cfg:[Config]MaxSounds=99ErrorFlag=0LvarStop=soundstopVolumeVar=Radio_Range_VolumeResetVolumeVar=1Sound00=./sound/alert caution.wav,90Sound00=./sound/alert fire.wav,95etc.I can stop the sounds with 1 (>L:soundstop,number)I tried Radio_Range_Volume LVar but no change in volume.What to do with:L:dsd_xml_sound_volume with 3 and 4 ?Can someone give an example?Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Jan,Could you try this for us? :-)Sound Var : (L:YourSoundVar,number)Max volume:100 (>L:dsd_xml_sound_volume,number) 3 (>L:YourSoundVar,number)Min volume:70 (>L:dsd_xml_sound_volume,number) 3 (>L:YourSoundVar,number)Increment volume:4 (>L:YourSoundVar,number) (L:dsd_xml_sound_volume,number) 20 + 100 min 3 (>L:YourSoundVar,number)etc.Tom

Share this post


Link to post
Share on other sites

-Just a question for Doug:Could be possible to make the sound play depending of current view mode (Panel/VC/Spot/Tower) ?THAT would be the ultimate solution for aircraft sounds managemement out of FS system! TOm

Share this post


Link to post
Share on other sites

This works:[Config]MaxSounds=99ErrorFlag=0LvarStop=soundstopVolumeVar=Radio_Range_VolumeResetVolumeVar=0Sound11=./Aircraft/Boeing 0 767-300ER/panel/phjvh sound/cabin 2.wavLvar11=cabin 2(M:Event) 'LeftSingle' scmp 0 == if{ 3 (>L:cabin 2,number) (L:dsd_xml_sound_volume,number) 1 - 70 max (>L:dsd_xml_sound_volume,number) }(M:Event) 'RightSingle' scmp 0 == if{ 3 (>L:cabin 2,number) (L:dsd_xml_sound_volume,number) 1 + 100 min (>L:dsd_xml_sound_volume,number) }didn't use 4Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Looks like I better check my code. May be that the bit where it reads the volume variable is broken...Doug

Share this post


Link to post
Share on other sites

>-Just a question for Doug:>>Could be possible to make the sound play depending of current>view mode (Panel/VC/Spot/Tower) ?>>THAT would be the ultimate solution for aircraft sounds>managemement out of FS system! >>TOm>I think that current view is available as a P:Variable. If so, then your suggestion is do-able. However, unless you are willing to work with a further 100 L:Vars, it will be an all or nothing solution...Doug

Share this post


Link to post
Share on other sites

Jan,Does it work either way? 3 > LVarSound nVol > LSoundVol ornVol > LSoundVol 3 > LVarSound nVol ??Tom

Share this post


Link to post
Share on other sites

Doug,I was thinking of a way to manipulate external-internal sounds via a volume variation. Mostly for engine accurate sound control using Lvars instead of FS sound.cfg, and realistic APU sound feasible (in most airliners it can't be heard from the cockpit, but is noisy when heard from the tarmac)Just a thought.TomPS : In XML there is no A/P/E var that I know of for retrieving current view mode.

Share this post


Link to post
Share on other sites

>>PS : In XML there is no A/P/E var that I know of for>retrieving current view mode.>Tom: (P:ACTIVE VIEW MODE,enum) 1 = 2D2 = VC3 = Tower4 = Spot--Jon

Share this post


Link to post
Share on other sites

A little OT, and I'm pretty sure there isn't, but is there an XML Var for the current view axis offests? I'd love to be able to make a true combiner HUD that shifts based on the view axis in the VC, but alas, I don't think you can READ that in XML, .

Share this post


Link to post
Share on other sites

Jon,"(P:ACTIVE VIEW MODE,enum)" Well, I didn't have that in my bag! thank you :-)There is no reference to view modes in FS Parameters.doc, and I didn't bother to search elsewhere...my fault.>>A little OT, and I'm pretty sure there isn't, but is there an XML >>Var for the current view axis offests? I'd love to be able to make >>a true combiner HUD that shifts based on the view axis in the VC, >>but alas, I don't think you can READ that in XML, .As stated above, currently I don't have references of VIEW variables, guess I need to investigate a bit before being able to discuss about this, sorry.Tom

Share this post


Link to post
Share on other sites

Hi,As far as tested it works like this:I use version 3.2!!Version 3.6 doesn't work like this????3 (>L:Varsound1,number)98 (>L:dsd_xml_sound_volume,number)3 (>L:Varsound2,number)xx (>L:dsd_xml_sound_volume,number)3 (>L:Varsound3,number)nVol (>L:dsd_xml_sound_volume,number)etc.UsingnVol (>L:dsd_xml_sound_volume,number)3 (>L:Varsound3,number)no difference.I use:3 (>L:Varsound x,number) (L:dsd_xml_sound_volume,number) 1 + 100 min (>L:dsd_xml_sound_volume,number) } 3 (>L:Varsound x,number) (L:dsd_xml_sound_volume,number) 1 - 70 max(>L:dsd_xml_sound_volume,number) } Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Don't ask me why, I don't know myself, but I just now realized you have that resources section! Great stuff!!!I can think of 3 that you don't have listed though. Word is that MS VC++ Express and MS Visual Web Studio Express have both had that 1 year limitation lifted, and so are totally free now. I use both.You listed Adobe and PSP but somehow The G.I.M.P. missed the list. Gimp's totally free and always will be. It's also open source and has been around long enough that it has almost anything you could want from Adobe or PSP.Blender is great... 10+ years strong of open source growth... but getting into Blender without knowing how to get the currently available video tutorials is a guaranteed way to give yourself an ulcer. Trust me, I've been a Blender-head for about six years now and there are parts of advanced texturing and animation that still make me want to stick my head in the toilet and flush! The videos are online in six or seven websites, some links to them in your Blender area could be helpful for a lot of frustrated folks.Lastly, you have Jordan Moore's Huey listed but not the 412? (chuckle)Great site! Thanks for hosting it!Scott / Vorlin

Share this post


Link to post
Share on other sites

Thanks Scott.People are not finding things as easily as I had hoped. It seems the navigation cues I thought were clear are not, so I will need to rethink some things on the sites layout. I may need to make the tabs stand out better.I did not know that about MS VC++. I will search it out. Thanks. I have links to Bloodshed C++ IDE and Cygwin (GNU dev env).Gimp is on the list, right under the other two ;).Blender is on the list. Click the development tab (grey and white, not the green and red bar) and look under 3D modeling (on the green and red bar). I also have Povray and a link to DAZ (for pilot figures, 3d gauges and so on).AC and utilities are still in the process of being gathered and there are still many I do not know about. Thanks for the heads up on the 412 and MS stuff.Cheersshad

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