Error with wavwrite (R2011b Linux)

2 ビュー (過去 30 日間)
Martin
Martin 2012 年 7 月 17 日
Hello,
I have this error with the wavwrite function that I don't understand... Could you please help me?
>> wavwrite(mix,Fs,bit,'master.wav'); Error using fclose Invalid file identifier. Use fopen to generate a valid file identifier.
Error in wavwrite (line 143) fclose(fid);
The mix data format is double Fs =44100 and bit=16
A wav is generated but corrupted...
Thanks a lot for your help,
Martin
  1 件のコメント
Daniel Shub
Daniel Shub 2012 年 7 月 17 日
To figure out what is going on, we need more than just the last bit of the error. If you look at WAVWRITE with type wavwrite what you will see is that line 143 is part of a try-catch block. There is some other problem that causes WAVWRITE to crash before trying to close the file. It is not clear to me how fid can be invalid since OpenWaveWrite should give you a different error. Try using lasterror, echo or the debugger to get more information about the error.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by