Rewind - Fast Forward Button (Audio Player)
古いコメントを表示
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
2022 年 4 月 22 日
0 投票
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
2022 年 4 月 22 日
編集済み: Nikos Korobos
2022 年 4 月 23 日
カテゴリ
ヘルプ センター および File Exchange で Audio I/O and Waveform Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!