.net - How do I fade in and out a .WAV file? -
i have created function takes .wav file ans plays . how can fade in , out .wav file when played
dim wav1 list(of byte) = io.file.readallbytes("hello.wav").tolist using ms new memorystream(wav1.toarray) using snd new system.media.soundplayer(ms) snd.play() end using end using
looking @ documentation sound player class there doesn't way of changing volume.
http://msdn.microsoft.com/en-us/library/system.media.soundplayer_properties.aspx
can use mediaplayer class instead , access volume property?
http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx
http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.volume.aspx
Comments
Post a Comment