how can i use audioplayer command in my GUI to play an audio?

2 visualizaciones (últimos 30 días)
rishabh gupta
rishabh gupta el 14 de En. de 2018
Comentada: Muhammad Anis el 20 de En. de 2020
i want that when i press the play button(that i created in my GUI), a song plays. it is working fine with 'sound' command,but i want to use audioplayer command. please help.

Respuestas (1)

Jan
Jan el 14 de En. de 2018
Editada: Jan el 14 de En. de 2018
Replace
sound(Y, FS, BITS)
by
S = audioplayer(Y, FS, BITS);
S.play();

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by