R
R
Roman2020-04-24 10:54:31
C++ / C#
Roman, 2020-04-24 10:54:31

C# SoundPlayer, how to set *.wav sound volume?

Hello everyone, I have to press the button to play the .wav file, how can I set the volume in the parameters, otherwise I don’t want to reduce it in the db file itself. And I won't do it every time.

SoundPlayer click = new SoundPlayer(Properties.Resources.click); // импортируем наш звук из файла Resource
click.Load(); // загружаем его
click.Play(); // и проигрываем, только как громкость указать?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Timur Pokrovsky, 2020-04-24
@Fade-org

https://stackoverflow.com/questions/50521363/sound...
https://social.msdn.microsoft.com/Forums/vstudio/e...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question