MATLAB: What is the difference between Sound & Soundsc? And How can i play an audio file asynchronously

sound soundsc synchron and asynchron

wavread and etc. func out, audioread and etc. func in. But I dont understand the basic differences between sound and soundsc func. I realized examples, they used in the same way.. And I cant play any audio file asynchronously. How can I select mode?

Best Answer

Is there something from the description that you don't understand: " soundsc(y) scales the values of audio signal y to fit in the range from –1.0 to 1.0, and then sends the data to the speaker at the default sample rate of 8192 hertz. By first scaling the data, soundsc plays the audio as loudly as possible without clipping. The mean of the dynamic range of the data is set to zero."
So soundsc() scales the sound to the max dynamic range while sound() does not. A quiet sound will sound quiet with sound(), but will sound louder with soundsc(). In other words, sound plays y, while soundsc does something like this:
maxy = max(abs(y));
louder_y = y / maxy;
sound(louder_y);