在Matlab中制作音频播放器时,如何使用滑块增加/减少音量?
[x,Fs]= audioread('G:\Year3\MediaTechnology\Assignment\Sune Khabar.mp3');
slider_val = get(hObject, 'Value');
disp(get(hObject,'Value'));
k = slider_val;%Getting slider value
player = audioplayer(k*x,Fs); %audiofile read
play(player);
guidata(hObject,handles)%Code for increasing volume