Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.11 KB

mmioRead.md

File metadata and controls

53 lines (38 loc) · 1.11 KB

Home

Function name : mmioRead

Group: Windows Multimedia - Library: winmm


The mmioRead function reads a specified number of bytes from a file opened by using the mmioOpen function.


Code examples:

WAV file player
Changing pitch and speed of a wave file
Playing WAV sounds simultaneously

Declaration:

LONG mmioRead(
  HMMIO hmmio,
  HPSTR pch,
  LONG cch
);  

FoxPro declaration:

DECLARE LONG mmioRead IN winmm;
	INTEGER   hmmio,;
	STRING  @ pch,;
	INTEGER   cch  

Parameters:

hmmio File handle of the file to be read.

pch Pointer to a buffer to contain the data read from the file.

cch Number of bytes to read from the file.


Return value:

Returns the number of bytes actually read. If the end of the file has been reached and no more bytes can be read, the return value is 0. If there is an error reading from the file, the return value is 1.