Changing the Volumes with Slider - Java Extra 49

preview_player
Показать описание
This time we will implement a slider so we can control the volume of audio files with it.

#Javatutorial #javasound #javaplaymusic #javachangevolume #floatcontrol #JSlider

Music Used in the Video:
Рекомендации по теме
Комментарии
Автор

Very nice approach. Do you have code that you could share?

evanmartin
Автор

Hey can you make video on how to change windows display brightness using java slider or by percentage
If i set 75% then screen light will be changed to 75% darker

And it will be also work in desktop pc which does not have this feature by default

mystudy
Автор

Does this work with multiple audio files too? Because whenever I mute it mutes the last file of it.

public Test() {

...
//SOUND FILE
URL firstFile =
URL secondFile =

playMusic(firstFile); // This can't be muted and the volume can't get changed either
playMusic(secondFile); //This is getting muted, or the volume of this can be changed

}

adoniszgks
Автор

did you find a way to change it in real time ?, In the traditional way it has a delay of 1 second or 7ms, I can't find a way to make it sound in real time like any other player, I found a somewhat ambiguous answer that said that using the audio buffer and multiplying it by the volume factor, a real time effect was achieved with a change of 1 / 40s of delay But I don't explain how to do it specifically :c

jovannisanchez
welcome to shbcf.ru