write_read_test.tpl : Fix issue with AU files.

This commit is contained in:
Erik de Castro Lopo 2005-11-19 02:10:13 +00:00
parent 4c93e0bad9
commit 46616084ec

View File

@ -736,7 +736,9 @@ mono_rdwr_[+ (get "type_name") +]_test (const char *filename, int format, int lo
sfinfo.channels = 1 ;
sfinfo.format = format ;
if ((format & SF_FORMAT_TYPEMASK) == SF_FORMAT_RAW || (format & SF_FORMAT_TYPEMASK) == SF_FORMAT_SD2)
if ((format & SF_FORMAT_TYPEMASK) == SF_FORMAT_RAW
|| (format & SF_FORMAT_TYPEMASK) == SF_FORMAT_AU
|| (format & SF_FORMAT_TYPEMASK) == SF_FORMAT_SD2)
unlink (filename) ;
else
{ /* Create a short file. */
@ -850,7 +852,7 @@ new_rdwr_[+ (get "type_name") +]_test (const char *filename, int format, int all
SF_INFO sfinfo ;
[+ (get "data_type") +] *orig, *test ;
int items, frames ;
orig = ([+ (get "data_type") +]*) orig_data ;
test = ([+ (get "data_type") +]*) test_data ;