Results 1 to 3 of 3

Thread: sound problem with DirectX volume control

  1. #1
    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?

  2. #2
    Join Date
    Mar 2008
    Posts
    198

    Re: sound problem with DirectX volume control

    0 is max loudness. Try -10000. good luck

  3. #3
    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

Similar Threads

  1. Macbook 2,1 w/sound but no volume control
    By audeo13 in forum Portable Devices
    Replies: 1
    Last Post: 18-10-2011, 12:52 PM
  2. Macbook - No Sound - Volume control locked
    By The-Apollo in forum Portable Devices
    Replies: 4
    Last Post: 20-10-2010, 08:11 PM
  3. Toshiba Satellite L505-S6959 volume control sound too low
    By Talaketu in forum Portable Devices
    Replies: 6
    Last Post: 10-09-2010, 11:58 AM
  4. Surround Sound Volume control and Logitech G35
    By Cherkasov in forum Hardware Peripherals
    Replies: 6
    Last Post: 10-06-2010, 10:05 PM
  5. Replies: 4
    Last Post: 08-05-2008, 01:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •