DTConv successfully converted an 8svx file to wave.
The difficulty is not the sound datatype conversion. That's actually easier than picture datatype conversion.
The problem is getting an empty sound datatype for destdto (destination datatype) so that we can copy from srcedto to it.
Getting an empty datatype object works for pictures but not for sound datatypes. So I noticed that getting a sound datatype from an existing file works. So I set up a workaround to test my code for sound conversion.
Copy the prototype to Ram Disk that represents the destination format. When getting a destination datatype we use that file.
Object *destdto = NewDTObjectA(dest, NULL); where dest is the prototype filename in Ram Disk. We are only interested in the container and basename not the contents. The data will be copied from srcedto to destdto. The conversion to wave works.
After working with sound files I realize we need more datatypes! Maybe MOD, MIDI, OGG, MP3, WMA just to mention a few.
