The SD2 file format is now supported by utilities and sound input opcodes in the current CVS sources; note that the file name must have an extension of ".sd2" (case insensitive) for this to work, otherwise the file would not be recognized as SD2. Also, the file format is printed correctly as "SD2" rather than "unknown". On Sunday 09 April 2006 11:15, Istvan Varga wrote: > On Sunday 09 April 2006 09:27, matt ingalls wrote: > > > i have a feeling it is just the anal utils thinking sd2 is not a > > supported type and are throwing an error when they shouldn't. > > like i said, sndinfo works. > > There are no checks in the utilities to exclude file types. The problem > has a different reason: SD2 files can only be opened by sf_open() (which > takes a file name) and not sf_open_fd() (takes an integer file > descriptor), exactly because of the strange two-file storage method. > sndinfo uses sf_open(), however, the other utilities (and in general > most code that opens a sound file) call csoundFileOpen() which opens > sound files by passing an integer file descriptor to sf_open_fd() and > thus fails on SD2 files. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net