play audio song in background of my project

15 views (last 30 days)
reema on 14 Aug 2014
Commented: reema on 16 Aug 2014
i want to play the audio tone(song), when my project GUI run ,,i have 3 GUI of my project which are linked with each other ,,...i want tooo play tone in background until my project is run.. can any on ehelp meee how can i play:

Accepted Answer

Joakim Magnusson
Joakim Magnusson on 14 Aug 2014
Edited: Joakim Magnusson on 14 Aug 2014
If you have a .wav file i think this will work. First load your file:
[y f]=audioread('yourMusicFile.wav');
Then play audio with:
Stop sound with:
clear playsnd;
reema on 16 Aug 2014
sir do you have any idea about voice effects in matlab? i want to generate voice with effect...i have simple recorded voice and want to hear in voice efects(sound effects)..

Sign in to comment.

More Answers (1)

Sean de Wolski
Sean de Wolski on 14 Aug 2014
audioplayer can play without play blocking (so your other processes and continue).
reema on 14 Aug 2014
but when me use the audioplayer then i can;t hear the song

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!

Translated by