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

조회 수: 1 (최근 30일)
rishabh gupta
rishabh gupta 2018년 1월 14일
댓글: Muhammad Anis 2020년 1월 20일
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.

답변 (1개)

Jan
Jan 2018년 1월 14일
편집: Jan 2018년 1월 14일
Replace
sound(Y, FS, BITS)
by
S = audioplayer(Y, FS, BITS);
S.play();

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by