• MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 451 from 2003/7/26
    From: Wroclaw/Poland
    Minuous, zukow:

    I have one question. I load a 16-bit stereo sample using sound datatype, check type of the sample (function GetDTAttrs with tag SDTA_SampleType). Returned type is 0x00020002, so this is really stereo 16-bit:

    soundclass.h
    Code:
    #define SDTST_M8S  0x00010001 /* 8bit mono sample (default) */
    #define SDTST_S8S 0x00020001 /* 8bit stereo sample (samplewise left/right) */
    #define SDTST_M16S 0x00010002 /* same as SDTST_M8S but 16bit */
    #define SDTST_S16S 0x00020002 /* same as SDTST_S8S but 16bit */


    However if I play the sound using AHI with parameter:
    Code:
    AHIio->ahir_Type = AHIST_S16S;

    tempo of the sound is too fast (probably 4x).
    If I set parameter:
    Code:
    AHIio->ahir_Type = AHIST_M8S;

    tempo of ths sound is correct.

    What does it mean? Sound loaded using DataTypes always is converted to 8-bit?

    If this is true, sound datatypes are absolutely useless. :) Now I understand why Reggae was created. :)
  • »22.12.19 - 15:00
    Profile Visit Website