Einzelnen Beitrag anzeigen

Medium

Registriert seit: 23. Jan 2008
3.686 Beiträge
 
Delphi 2007 Enterprise
 
#4

AW: Wave audio component live stream problem using indy 10

  Alt 3. Jul 2014, 02:23
buffer const parameter = system.pointer
You call the function like this: RawToBytes(Buffer^, Buffersize) . The "^" after a pointer dereferences it, but the function does expect a plain pointer. You would just have to not dereference it: RawToBytes(Buffer, Buffersize) As for the returning type, we still do not see the proper signature of the function. It seems to be in one of your used units, but not in the one you pasted here. If those units came with source, just make a Ctrl-Click on the function name, and the IDE should take you straight to that function's header. If you could paste that line, it would probably help a lot. If it came without source, you'd have to rely on the accompanying documentation for a proper parameter list.
"When one person suffers from a delusion, it is called insanity. When a million people suffer from a delusion, it is called religion." (Richard Dawkins)
  Mit Zitat antworten Zitat