Syntax
void* vm_res_get_audio(
    VMUINT32 audio_id, 
    VMUINT32* size
);
ContentsIndex
PreviousUpNext
vm_res_get_audio
Syntax
void* vm_res_get_audio(
    VMUINT32 audio_id, 
    VMUINT32* size
);
Description

Load and get audio data according to resource ID. The buffer is allocated by resource module and vm_res_delete() must be called when it is no longer used.

Parameters
Parameters 
Description 
VMUINT32 audio_id 
[IN] Resource ID of the audio data. 
VMUINT32* size 
[OUT] The size of the returning buffer, in bytes. 
Returns

Pointer to the buffer containing audio data. This buffer is maintained by 

resource module and should not be written. Call vm_res_delete() to 

release this buffer. 

NULL is returned if the ID is invalid.

File

vmres.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.