Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Commented Unassigned: Trying to change volume [16395]

$
0
0
Im pretty new to Naudio, and im trying to change the volume of my DirectSoundOut

When i try to change it nothing happens even if i pause and play the song again

dim stream As NAudio.Wave.BlockAlignReductionStream = Nothing
dim output As DirectSoundOut = New DirectSoundOut()

Public Sub volume(ByVal vol_in As Single)
output.Volume = vol_in
End Sub

Comments: What version of NAudio are you using? In the latest you can't set the DirectSoundOut volume property as it simply doesn't work properly. The recommended way is to adjust the values of your samples. Or use WaveOut instead.

Viewing all articles
Browse latest Browse all 738

Trending Articles