Hi List,
The callback i'm using with FMOD requires me to feed PCM data.
Can memoryblock be used this way?
I was unable to get this to work, the callback is called but the data
feeding doesn't work, i only get some clicking as audio.
The properties sound and datalen are returned properly.
Here is Syntax:
FMOD_RESULT F_CALLBACK FMOD_SOUND_PCMREADCALLBACK(
FMOD_SOUND * sound,
void * data,
unsigned int datalen
);
The callback function:
Function pcmreadcallback(byref sound as integer, byref d as ptr,
datalen as integer) As integer
data=NewMemoryBlock(datalen)
if data<>nil then
if receiveddata<>nil and receiveddata.size>=receivedposition
+datalen then
data.StringValue(0,datalen)=receiveddata.StringValue
(receivedposition,datalen)
end
end
receivedposition=receivedposition+datalen
d=data
return FMOD_OK
End Function
Regards,
Aleksi
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>