why does the wave player Block in Simulink do this when i loop a sound and how can i fix it?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Matlab_Beginner
le 28 Juin 2022
Commenté : Matlab_Beginner
le 29 Juin 2022
Hello,
i have a Problem, for which i didnt find an explanation, when i play a sound using the From Multimedia File(wave Player) Block in Simulink, the sound cuts when the block repeat it from the beginning(while looping), i tested this with a 10 Amplitudes sine wave to better visualise the problem.
is there any clarification why does the Block do this? and how can i prevent this from happening?
Thanks a lot in advance
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1049290/image.png)
0 commentaires
Réponse acceptée
jibrahim
le 29 Juin 2022
Hi ALCA, the From Multimedia File block has a 'Samples per audio channel' parameter. This determines the size of the frame.
If the length of the audio file is not a multiple of this frame size, the block will append zeros to the last read frame, and then we reset and we repeat. You would avoid this by making sure the length of your signal is a multiple of the frame size.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Audio Processing Algorithm Design 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!