Jump to content
The simFlight Network Forums

Recommended Posts

Posted

I am tinkering with the sound library and I can get sounds playing, looping and stopping easily enough. But I am a bit stumped with the volume and position parameters, which have some effect but which don't seem to be doing what I need. Volume, for example, varies the volume somewhat but there doesn't seem to be a huge difference between 0% and 100% and 0% is still quite audible. Also, most importantly for my present purposes the position parameter doesn't seem to let me to play a sound on one channel (left or right) only. I am using 90 or 270 for the position (I have tried other positions) but it seems to mix the sound and merely bias it left or right, even if the WAV file contains a sound playing on the left or right channel only.

 

What I need to be able to do is play a sound unmistakably on one channel or the other and to be able to fade it in and out gradually. I can get the fade in and out with a bit of ingenuity and three separate WAV files - one that fades in, one that can be looped and a third that fades out. (Actually I can do away with the looping one if I make the faded-in one long enough.)

 

For what it's worth, I have written a little program to give me audible cues for the balance ball position. So when the ball drifts out of the middle I get wind noise building from the right or left. It sort of works but the channel separation issue is letting it down. Am I missing anything or do I need to find another way?

Posted

I am tinkering with the sound library and I can get sounds playing, looping and stopping easily enough. But I am a bit stumped with the volume and position parameters, which have some effect but which don't seem to be doing what I need. Volume, for example, varies the volume somewhat but there doesn't seem to be a huge difference between 0% and 100% and 0% is still quite audible. Also, most importantly for my present purposes the position parameter doesn't seem to let me to play a sound on one channel (left or right) only. I am using 90 or 270 for the position (I have tried other positions) but it seems to mix the sound and merely bias it left or right, even if the WAV file contains a sound playing on the left or right channel only.

 

FSUIPC merely calls the appropriate DirectSound facilities. I suspect how they operate depends a great deal on the sound card configuration. Also, I'm not sure whether you can direct non-mono sound sources because they have the sound positions pre-determined.

 

Pete

Posted

FSUIPC merely calls the appropriate DirectSound facilities. I suspect how they operate depends a great deal on the sound card configuration. Also, I'm not sure whether you can direct non-mono sound sources because they have the sound positions pre-determined.

 

Okay, thanks. I wonder if this means I can make a mono sound and that will work differently. Got to be worth a try, anyway.

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.