42+43+44+45+4+47+48+49+50+51+52+5+54+55+5+57+58+59+60+61+62+63+64+65+66+67+68+69+70+71 = 1695
unsigned char riff[4] = { 0x52, 0x49, 0x46, 0x46 }; fwrite (riff, 1, sizeof (riff), fichierwav); int valeurss = (1695 * 2)+48; int valeurs = (1695 * 2); fwrite (&valeurss, sizeof (valeurss), 1, fichierwav); unsigned char wave[4] = { 0x57, 0x41, 0x56, 0x45 }; fwrite (wave, 1, sizeof (wave), fichierwav); unsigned char fmt[4] = { 0x66, 0x6D, 0x74, 0x20 }; fwrite (fmt, 1, sizeof (fmt), fichierwav); unsigned char poids[4] = { 0x10, 0x00, 0x00, 0x00 }; fwrite (poids, 1, sizeof (poids), fichierwav); unsigned char pourpcm[2] = { 0x01, 0x00 }; fwrite (pourpcm, 1, sizeof (pourpcm), fichierwav); unsigned char piste[2] = { 0x01, 0x00 }; fwrite (piste, 1, sizeof (piste), fichierwav); unsigned char tempsunitaire[4] = { 0x44, 0xAC, 0x00, 0x00 }; fwrite (tempsunitaire, 1, sizeof (tempsunitaire), fichierwav); unsigned char octetpars[4] = { 0x88, 0x58, 0x01, 0x00 }; fwrite (octetpars, 1, sizeof (octetpars), fichierwav); unsigned char tailleechant[2] = { 0x02, 0x00 }; fwrite (tailleechant, 1, sizeof (tailleechant), fichierwav); unsigned char bitparechan[2] = { 0x10, 0x00 }; fwrite (bitparechan, 1, sizeof (bitparechan), fichierwav); unsigned char mono[4] = { 0x64, 0x61, 0x74, 0x61 }; fwrite (mono, 1, sizeof (mono), fichierwav); fwrite (&valeurs, sizeof (valeurs), 1, fichierwav);Contact et support: Joris Abadie