Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



sound problem with DirectX volume control

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 30-12-2008
Member
 
Join Date: Oct 2008
Posts: 42
sound problem with DirectX volume control
  

hi,

I have an instance of DirectX's audio player called :

Microsoft.DirectX.AudioVideoPlayback.Audio DXShipFires = new Microsoft.DirectX.AudioVideoPlayback.Audio("C:\\Games\\Asteroids_C#\\ShipFires.wav");

and the playback

playSound(DXShipFires);

private void playSound(Microsoft.DirectX.AudioVideoPlayback.Audio DXThisAudio)

{

//DXThisAudio.Volume = (int) nudVolume.value;

DXThisAudio.CurrentPosition = 0.0;

DXThisAudio.Play();

}

works fine ... except, as you can see the commented out line, which refuses to work with any value other than zero and is still much, much too loud!

I don't know how to set the volume despite looking at the volume property's calling header which reads 'int Audio.Volume' !?!

any ideas?

Reply With Quote
  #2  
Old 30-12-2008
Member
 
Join Date: Mar 2008
Posts: 198
Re: sound problem with DirectX volume control

0 is max loudness. Try -10000. good luck
Reply With Quote
  #3  
Old 30-12-2008
Member
 
Join Date: Oct 2008
Posts: 42
Re: sound problem with DirectX volume control

Great .
at -10000 you can't hear anything but the negative values are where its at...

thank you
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "sound problem with DirectX volume control"
Thread Thread Starter Forum Replies Last Post
Macbook 2,1 w/sound but no volume control audeo13 Portable Devices 1 18-10-2011 12:52 PM
Macbook - No Sound - Volume control locked The-Apollo Portable Devices 4 20-10-2010 08:11 PM
Toshiba Satellite L505-S6959 volume control sound too low Talaketu Portable Devices 6 10-09-2010 11:58 AM
Surround Sound Volume control and Logitech G35 Cherkasov Hardware Peripherals 6 10-06-2010 10:05 PM
On Vista where is the sound stereo mix on the windows volume control BeckyW Vista Help 4 08-05-2008 01:30 AM


All times are GMT +5.5. The time now is 11:08 PM.