Jump to content
Sign in to follow this  
bcs112

DirectSound doesn't play after panel reload (FSX) ?

Recommended Posts

Just out of curiosity, and for anyone who may be having the same issue, it would be helpful to post the solution.Fred

Share this post


Link to post
Share on other sites

Hey Fred,I'm not sure if many people will be facing the same problem but here is what I did. In my multigauge setup I use "module_init" and "module_deinit" for doing all kinds of things that only need to be done once, like initializing and loading the sound files. The big advantage of using this method is that these sections are always performed when the gauge is loaded. So you don't have to worry if the individual subgauge that holds the sound stuff is loaded or not (hope you see what I'm trying to say).And using this technique the sound stuff worked just fine when it was loaded the first time, but when you try to reload the panel for some reason directsound runs out of memory. The way to solve the problem is to move the sound away from the module sections and back into the gauge. Which is off course opposite to what I wanted to do in the first place.The sound must be initialized (InitDirectSound) in the PANEL_SERVICE_PRE_INITIALIZE section and unloaded in the PRE_KILL section.Bj


simcheck_sig_banner_devteam.jpg

 

Bj

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...