www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/PlaySampleDatawithSpecificBitDepthSoundScExample.m

    %% Play Sample Data with Specific Bit Depth  

%%  
load handel.mat;
nBits = 16;
soundsc(y,Fs,nBits); 

%%
% MATLAB(R) plays the scaled audio with a bit depth of 16 bits per sample.