NB: I think it would be more helpful to post this kind of questions
about x2x on sptk forum ;-) I suppose you mean wavread in Matlab ? in that case, this should do : [x] = wavread('myfile.wav');%normalized [-1:1[ x = round(x * (2^15) );%integer 16-bits PCM fid = fopen('myfile.raw','w'); fwrite(fid,x,'short'); fclose(fid); for your white noise problem : did you check both little and big endian options when reading the raw short file ? what command did you use to generate and play the generated file ? Alexis Zheng, Dang C. a écrit :
|