Hi All, Now that I have added support for DATATYPES in AmiDARK Engine concerning Images and textures, I'd like to do the same concerning sounds...
Concerning pictures, there is the structure BitmapHeader that allow me to get all informations needed to build the final image in memory.
When I look at soundclass.h ... I have no structure like bitmapheader in pictureclass.h ... Only a structure for voice sample ... Is there a *non* documented structure or other file related structure I can use to load a sound using datatypes, and use it ... Or does the use of datatypes for sound is different from method for images ?
There is no such structure. You get the required information from SDTA_SampleLength and SDTA_Period. The sample format is always 8 bit signed mono and may not be longer than 128kb.