Play audio in the background of project

4 views (last 30 days)
Brooke Sarley
Brooke Sarley on 10 May 2017
I apologive for the repeat question: See previous here.
The OP was not very good and the accepted answer does not help me... nor do the 28 irrelevant comments.
Problem: The song is not playing and no errors are given
Here is what I have thus far to play in the background of a script:
load song.mat
playerObj=audioplayer(y,Fs);
start=playerObj.SampleRate*225; %start song at 3:45 mark
play(playerObj,start)
This is all that I could find on Mathworks... seems like I'm missing something simple that would make the sound audible.
Thanks for the help\n Brooke

Answers (0)

Community Treasure Hunt

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

Start Hunting!