Volume problem

915a315f4d83b17b7ae3689ba42adcbf
0
valdi 101 May 11, 2010 at 18:23

Hi, i wrote an application in VC++ that reproduces a sound from a wav file. I used DirectSound.
The application reads a configuration file from which it takes the value for the attenuation of the sound and then plays it.
The problem is that when the sound is playing and i try to control the volume using windows volume control panel, in some point of the master volume (near the middle point) control, the sound dissapear and you can´t hear anything. Above this point the sound is very loud so i can’t get a reasonable volume.

Any ideas?

Many thanks in advance.

9 Replies

Please log in or register to post a reply.

17ba6d8b7ba3b6d82970a7bbba71a6de
0
vrnunes 102 May 11, 2010 at 23:11

What happens when you don’t apply the volume attenuation setting?

I mean, what happens if you just play the sound without changing any default parameter at all, does it play correctly?

915a315f4d83b17b7ae3689ba42adcbf
0
valdi 101 May 12, 2010 at 14:23

Thanks for your reply.

If i set 0 attenuation from the configuration file the problem persist.
The difference is that the position of the master volume for which the sound dissapears change according to the attenuation applied.
For example, with 0 attenuation the sound dissapear at the middle point of the master volume. With a 1000 value for the attenuation the sound dissapear at 3/4 of the master volume (attenuation and position are only for reference, not real values)

17ba6d8b7ba3b6d82970a7bbba71a6de
0
vrnunes 102 May 12, 2010 at 15:22

Try not setting any value at all (not setting any value at all, leaving the default), could you do that just to test? Then check if the volume can be changed normally.

At this point I suspect the attenuation is the cause of your problem.

915a315f4d83b17b7ae3689ba42adcbf
0
valdi 101 May 12, 2010 at 15:47

The thing is that i’m having this problem in a system which is not where i am and does not have the development software installed. I have a test system here but the problem does not present even if i reinstall everything like the original. Both systems have the same harware configuration and drivers installed.

I know that is very hard to get a conclusion this way but i was hoping to find someone else who have had a similar problem.

915a315f4d83b17b7ae3689ba42adcbf
0
valdi 101 May 12, 2010 at 17:54

I’m just using SetVolume(x) with x from 0 to -10000 to set the attenuation. How could it affect the windows volume control behaviour?

0fe338e327ceff65fc2df6da21f12488
0
neptune3d 101 May 12, 2010 at 19:30

Since the problem does not persist in the second system than I would look at the first system and see if there are any strange settings on your audio mixer that might be causing the issue, look for things like bass boost, environment effects, etc. Does your audio card have a secondary app for controlling and shaping the volume as well, is there dolby enabled, can you set the speaker layout to two speakers vs. headphones? Just some things to try, sorry, just too many variables.

0fe338e327ceff65fc2df6da21f12488
0
neptune3d 101 May 12, 2010 at 19:36

Another thing that could cause sound issues is if your sound card has multiple interfaces for 5.1 and you have a 2 speaker setup but have plugged into the center channel jack on the card (in other words make sure you are plugged into the same jack on both systems).

67ea986ed56602aad29a6a6ffcd34f5b
0
paulmartin483 101 May 13, 2010 at 07:05

@valdi

I’m just using SetVolume(x) with x from 0 to -10000 to set the attenuation. How could it affect the windows volume control behaviour?

You have to first of all checked that sound icons was apply it.If sound icon was applied than you was faced that issue.So first you have go on properties, there you will find drop down box in there You will need to select show sound icons.So you can easily control on it.I hope that it would be help for it

9fb57988ee2aa7efeafc3bfb4063c641
0
Manuel_Marino 101 Aug 25, 2010 at 20:43

I suspect there’s an automatic volume setting somewhere, probably in the mixer configuration, so you can’t change properly the volume.