XAudio2 volume

This forum is currently in read-only mode.
From the Asset Store
10 different explosions rendered as transparent PNG.
  • How does it work? I've been experimenting with sound and I don't quite understand the decibel level settings. I set the volume to 0 and I can still hear the sound

    I had to set my volume to -100 to mute it, but that seems a little strange. What exactly is the range for the volume on this thing?

  • <img src="http://upload.namelezz.net/downloader.php?file=8267563_lolol.PNG">

    Oh its like "Add to private variable"

  • How does it work? I've been experimenting with sound and I don't quite understand the decibel level settings. I set the volume to 0 and I can still hear the sound :?

    I had to set my volume to -100 to mute it, but that seems a little strange. What exactly is the range for the volume on this thing?

    Decibels are a logaritmic scale work so that minus inifinte means "no sound"... Or that's what I think. I have no clue how it really works in XAudio2, though :P...

  • Oh its like "Add to private variable"

    Yeah I thought so after messing with it a bit, but a "Set channel volume to 10" action that's repeated over and over doesn't make it any louder.

    http://www.fileshack.us/get_file.php?id ... meTest.cap

  • set volume to 100 its too big

    http://www.fileshack.us/get_file.php?id ... testvl.cap

  • how do you stop a music from playing so you can play a different one? Xaudio isn't complete yet but is there a way to do that?

  • set volume to 100 its too big

    Uh, no.

    I tried 50 and nearly blew my speakers out, thanks.

  • If you've ever seen a mixing desk, the faders range from negative infinity up to zero near the top, then usually up to about +10 so a channel can be slightly boosted too. XAudio2 works similarly: a volume of -10 dB reduces the volume, like moving the fader on a desk down. Directsound actually worked like this, but adding 100 to everything (so 100 became unchanged level, 0 became -100 dB). So an XAudio2 volume of -100 does in fact correspond to Directsound volume 0 (but XAudio2 can go even lower and do boosts too). I think I need to add a 'Set muted' for channels though...

    Yeah, and be careful with really high boosts because it'll clip really badly and distort

    To play a different music, call the 'Play music from file' action again. It should replace the music.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Awesome, thanks Ashley

  • when I do the play musuc from resource it just plays both the songs at the same time

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)