|
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
-
pSound | Pointer to the sound to lock. |
offset | Offset into the sound buffer, in bytes. |
bytes | Number of bytes to lock. If bytes is 0, the entire buffer is locked. |
ppData | Pointer to a pointer that receives the address of the locked buffer portion. |
pSize | Pointer to an int the receives the size of the locked buffer portion. |
ppData2 | Pointer 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. |
pSize2 | Pointer 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()
|