Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.35 KB

mmioCreateChunk.md

File metadata and controls

61 lines (41 loc) · 1.35 KB

Home

Function name : mmioCreateChunk

Group: Windows Multimedia - Library: winmm


The mmioCreateChunk function creates a chunk in a RIFF file that was opened by using the mmioOpen function.


Code examples:

Class for sound recording
Changing pitch and speed of a wave file
Adding supplementary data to AVI files

Declaration:

MMRESULT mmioCreateChunk(
  HMMIO hmmio,
  LPMMCKINFO lpck,
  UINT wFlags
);  

FoxPro declaration:

DECLARE INTEGER mmioCreateChunk IN winmm;
	INTEGER   hmmio,;
	STRING  @ lpck,;
	INTEGER   wFlags
  

Parameters:

hmmio File handle of an open RIFF file.

lpck Pointer to a buffer that receives a MMCKINFO structure containing information about the chunk to be created.

wFlags Flags identifying what type of chunk to create.


Return value:

Returns MMSYSERR_NOERROR (0) if successful or an error otherwise.


Comments:

The new chunk is created at the current file position. After the new chunk is created, the current file position is the beginning of the data portion of the new chunk.