Jump to content


Volume problem


9 replies to this topic

#1 valdi

    New Member

  • Members
  • Pip
  • 4 posts

Posted 11 May 2010 - 06:23 PM

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.

#2 imerso

    Senior Member

  • Members
  • PipPipPipPip
  • 431 posts
  • LocationBrasil

Posted 11 May 2010 - 11:11 PM

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?

#3 valdi

    New Member

  • Members
  • Pip
  • 4 posts

Posted 12 May 2010 - 02:23 PM

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)

#4 imerso

    Senior Member

  • Members
  • PipPipPipPip
  • 431 posts
  • LocationBrasil

Posted 12 May 2010 - 03:22 PM

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.

#5 valdi

    New Member

  • Members
  • Pip
  • 4 posts

Posted 12 May 2010 - 03:47 PM

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.

#6 valdi

    New Member

  • Members
  • Pip
  • 4 posts

Posted 12 May 2010 - 05:54 PM

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?

#7 neptune3d

    Member

  • Members
  • PipPip
  • 60 posts

Posted 12 May 2010 - 07:30 PM

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.

#8 neptune3d

    Member

  • Members
  • PipPip
  • 60 posts

Posted 12 May 2010 - 07:36 PM

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).

#9 paulmartin483

    New Member

  • Members
  • Pip
  • 4 posts

Posted 13 May 2010 - 07:05 AM

valdi said:

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

#10 Manuel Marino

    New Member

  • Members
  • PipPip
  • 14 posts

Posted 25 August 2010 - 08:43 PM

I suspect there's an automatic volume setting somewhere, probably in the mixer configuration, so you can't change properly the volume.
Read my latest Games articles: Shawn Sharp and Guild Wars 2
New Demos: Astronauts and Funk Music - Knights and Film Music
Music Composers love blondes! Why? Find here: Marino Sounds Studio





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users