This is a program I wrote few years ago. always worked fine.
formatted and reinstalled Win7, .NET 2003, etc this weekend and now the program finds error anywhere I try to set the volume on audio playback
References have been made, code:
Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectInput
Imports Microsoft.DirectX.AudioVideoPlayback
Imports Microsoft.DirectX.DirectSound
Dim Music as Audio = Nothing
The old code read:
Music = New Audio (........)
Music.Volume = -1000 'the error is here
I went through the code and remmed all .Volume lines and the program works fine, music included.
Some change in DirectX? Change in Win7? I don't recall ever getting this running on Win7 before, but this format/reinstall was the first time I went back into the source code.
Right now the app works, but the question is, how can I set the volume?
Setting volume is a user option when the app is running.
Thanks.
G




Reply With Quote