Rewind - Fast Forward Button (Audio Player)

조회 수: 8 (최근 30일)
Nikos Korobos
Nikos Korobos 2022년 4월 20일
편집: Nikos Korobos 2022년 4월 23일
Greetings everyone
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!

답변 (1개)

jibrahim
jibrahim 2022년 4월 22일
Hi Nikos,
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.
  댓글 수: 1
Nikos Korobos
Nikos Korobos 2022년 4월 22일
편집: Nikos Korobos 2022년 4월 23일
Hello @jibrahim, got any code example on how I can set this up?
Guess you are reffering to this method release
Also is there any way I could stop the audio playback and save the audio at that specific point so it can restart playing faster?
Thanks in advance!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by