test/testresample.c
changeset 11988 8fa59be85dfb
parent 11811 5d94cb6b24d3
child 12503 806492103856
equal deleted inserted replaced
11987:0c284754e25b 11988:8fa59be85dfb
    91     SDL_WriteLE32(io, 0x46464952);      /* RIFF */
    91     SDL_WriteLE32(io, 0x46464952);      /* RIFF */
    92     SDL_WriteLE32(io, cvt.len_cvt + 36);
    92     SDL_WriteLE32(io, cvt.len_cvt + 36);
    93     SDL_WriteLE32(io, 0x45564157);      /* WAVE */
    93     SDL_WriteLE32(io, 0x45564157);      /* WAVE */
    94     SDL_WriteLE32(io, 0x20746D66);      /* fmt */
    94     SDL_WriteLE32(io, 0x20746D66);      /* fmt */
    95     SDL_WriteLE32(io, 16);      /* chunk size */
    95     SDL_WriteLE32(io, 16);      /* chunk size */
    96     SDL_WriteLE16(io, 1);       /* uncompressed */
    96     SDL_WriteLE16(io, SDL_AUDIO_ISFLOAT(spec.format) ? 3 : 1);       /* uncompressed */
    97     SDL_WriteLE16(io, cvtchans);   /* channels */
    97     SDL_WriteLE16(io, cvtchans);   /* channels */
    98     SDL_WriteLE32(io, cvtfreq); /* sample rate */
    98     SDL_WriteLE32(io, cvtfreq); /* sample rate */
    99     SDL_WriteLE32(io, avgbytes);        /* average bytes per second */
    99     SDL_WriteLE32(io, avgbytes);        /* average bytes per second */
   100     SDL_WriteLE16(io, blockalign);      /* block align */
   100     SDL_WriteLE16(io, blockalign);      /* block align */
   101     SDL_WriteLE16(io, bitsize); /* significant bits per sample */
   101     SDL_WriteLE16(io, bitsize); /* significant bits per sample */