Play audio in the background of project
4 views (last 30 days)
Show older comments
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
0 Comments
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!