Rewind - Fast Forward Button (Audio Player)
조회 수: 6(최근 30일)
So I coded an audio player(Matlab GUI) for wav files including a Play, Volume, Stop button etc.
Was wondering if it is possible to code a rewind and a fast-forward button while an audio file is playing.
Got any ideas or code samples to achieve that?
Here's my code for the Play Button:
Thanks in advance!
jibrahim 2022년 4월 22일
dsp.AudioFileReader has a ReadRange property that controls the range of samples you want to read. Here is an idea: when you apply rewind or fast forward, you can stop playback (by alling release on the objects), and set the first value of ReadRange to the desired start location before you restart playback.