On 18.9.2006, at 22.33, Jonathan Johnson wrote:
The void * is a pointer to fill, not a pointer to replace.
Try this instead:

Function pcmreadcallback(byref sound as Integer, d as Ptr, datalen as Integer) as Integer dim data as MemoryBlock = d // Create a memory block with "d" as its pointer
  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
  return FMOD_OK
End Function

HTH,
Jon

Now i got sound :)
Thanks a lot!


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>

Reply via email to