tugce.kolcu
tugce.kolcu

Reputation: 55

How can I use volumeSlider in NAudio?

I'm using NAudio library for audio player project. I want to make user control volume-slider like here

Is there anyone who knows how to use volume-slider in NAudio?

Upvotes: 1

Views: 1549

Answers (1)

Mark Heath
Mark Heath

Reputation: 49482

The NAudioDemo project included in the source code includes an example of using this slider. Handle the VolumeChanged event on the VolumeSlider, and then use the Volume property to set the volume either on a stream (e.g. the Volume property on SampleChannel), or directly on the output device (e.g. WaveOut)

Upvotes: 2

Related Questions