Mount Fuji Engine  0.8b
MF_API int MFSound_Lock ( MFSound pSound,
size_t  offset,
size_t  bytes,
void **  ppData,
size_t *  pSize,
void **  ppData2 = NULL,
size_t *  pSize2 = NULL 
)

Locks a sound buffer for writing.

Parameters
pSoundPointer to the sound to lock.
offsetOffset into the sound buffer, in bytes.
bytesNumber of bytes to lock. If bytes is 0, the entire buffer is locked.
ppDataPointer to a pointer that receives the address of the locked buffer portion.
pSizePointer to an int the receives the size of the locked buffer portion.
ppData2Pointer to a pointer that receives the second locked portion, or NULL. This is only used when locking a circular buffer and the lock length exceeds the buffers length. This parameter may be NULL.
pSize2Pointer to an int the receives the size of the locked buffer portion. This parameter may be NULL.
Returns
Returns 0 on success.
See Also
MFSound_Unlock(), MFSound_CreateDynamic()