On 13 November 2013 18:08, Sean P. DeNigris <sean@clipperadams.com> wrote:
Igor Stasenko wrote
> PaError Pa_OpenDefaultStream(NBExternalAddress * stream ... )
> then your call site will look like following:
> streamHandle := NBExternalAddress new.

Okay, one step closer. I somewhat randomly guessed to use NBExternalAddress,
but didn't have the correct thing in the signature...


Igor Stasenko wrote
> But hold on, next thing you will stuck with is callback ... hehe :)
> ...
> for that, again you can just change the function signature and...
> put nil. (yes, nil literal)

So you're saying the signature would become:
�� �� �� �� nbCall: #(PaError Pa_OpenDefaultStream(NBExternalAddress * stream,
�� �� �� �� �� �� �� �� ...
�� �� �� �� �� �� �� �� ulong �� framesPerBuffer,
�� �� �� �� �� �� �� �� nil,
�� �� �� �� �� �� �� �� void * ��userData))

I made the changes as I understood them, but I'm getting a "generic failure"
when I call Pa_OpenDefaultStream.

I uploaded the latest changes to the repo...



sorry for late reply.
��
hmm.. everything should work.
except i think nil -> void * is not accepted by default.
you should use #optCoerceNilToNull option:

self nbCall: ... options: #(+ optCoerceNilToNull)
��
or, if you don't wanna mess with options, you can always pass a null pointer by constructing it,
a simplest way is to pass dumb and stupid

NBExternalAddress null.


-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/NativeBoost-Documentation-Suggestion-and-Question-tp4720805p4721810.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.




--
Best regards,
Igor Stasenko.