we trust in you
Thanks. This one is a little perplexing at the moment.
It fails to return an empty datatype object but it successfully returns a datatype for an existing file! Hmmm...
But Save As IFF for Sound Files works in MultiView!
But I think I'm close to a solution. Looking at BMP datatype and other standard datatypes when creating an empty object the OM-NEW leads to the Load Function. In turn the Load Function tests for DTST_RAM as opposed to DTST_FILE and it looks for an empty filehandle. If it finds DTST_RAM & an empty filehandle it's an empty object so it returns the empty datatype object as requested.
However we unfortunately only have two sound datatypes for AROS those being Wave Datatype & 8SVX Datatype. So I examined 8SVX datatype first looking at OM_NEW & Read8SVX. But the Read Function doesn't test for DTST_RAM & an empty filehandle. Instead it says If(sourcetype != DTST_FILE) ... return FALSE; So the datatype simply fails to return anything in that case. That's wrong!
After examining Wave Datatype OM_NEW it also doesn't test for DTST_RAM & an empty filehandle. Hence the problem of not returning an empty sound datatype object. Mystery solved? We'll see.
I will modify 8SVX Datatype first then recompile and test again. If it returns an empty datatye...then problem solved.