Waitrud Weber’s blog

things and reminders for memories

sounds: windows-make: Microsoft RIFF:

We can use the parameter and write the buffer in the file so that we could not use the audio file api but we use the audio format supported by microsoft because for the recoding, we use the microsoft format audio as a touch file cashed in application.

    ...
			mmckinfoParent.fccType = mmioFOURCC('W', 'A', 'V', 'E'); 
			if (mmioDescend(hmmio, (LPMMCKINFO) &mmckinfoParent, NULL, MMIO_FINDRIFF)==-1) 
			{ 
				MessageBox(hwndApp, "We cannot create a wave audio file format on the memory.",
				NULL, MB_OK | MB_ICONEXCLAMATION);
				mmioClose(hmmio, 0); 
				return; 
			}

			if ( mmioCreateChunk( hmmio, &mmckinfoParent, MMIO_CREATERIFF)  == -1 ) {
				sprintf( msg_buffer, "Failed to wirte RIFF is %s handle|%d|\r\n", file_name, hmmio);
				MessageBox(hwndApp, msg_buffer,
				NULL, MB_OK | MB_ICONEXCLAMATION);
			}
...

 

The below number is "RIFF ..... WAVE". We could create it by use of the above source code.

 

DATA: 001-music-001.wav
52 49 46 46 FF FF FF FF 57 41 56 45

*

 

1 - - -
2

learn.microsoft.com

- -
3 - - -
- - - -
- - - -
- - - -
- - - -
- - - -

 

 

 

*