Rewind - Fast Forward Button (Audio Player)
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/971070/image.png)
Thanks in advance!
0 commentaires
Réponses (1)
jibrahim
le 22 Avr 2022
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 commentaire
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!