# @cfunction help

**URL:** <https://discourse.julialang.org/t/cfunction-help/60263>\
**Category:** General Usage\
**Created:** [April 29, 2021, 5:04pm UTC](https://discourse.julialang.org/t/cfunction-help/60263 "2021-04-29T17:04:43Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![bramtayl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bramtayl/32/3614_2.png) [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Post date:** [May 4, 2021, 8:46pm UTC](https://discourse.julialang.org/t/cfunction-help/60263/21 "2021-05-04T20:46:31Z")

</div>

You’d think at the least one could ask for more informative errors…

---

<div class="post-metadata">

**Author:** ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)\
**Post date:** [May 5, 2021, 7:50am UTC](https://discourse.julialang.org/t/cfunction-help/60263/22 "2021-05-05T07:50:11Z")

</div>

> <https://github.com/PortAudio/portaudio/blob/master/examples/paex_record.c>

Maybe we should start from here with the original C API instead of the high-level wrappers.

I wrote a binding generator here:

[https://github.com/Gnimuc/PortAudio.jl/blob/callback/src/libportaudio.jl](https://github.com/Gnimuc/PortAudio.jl/blob/callback/src/libportaudio.jl)

---

<div class="post-metadata">

**Author:** ![bramtayl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bramtayl/32/3614_2.png) [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Post date:** [May 5, 2021, 1:51pm UTC](https://discourse.julialang.org/t/cfunction-help/60263/23 "2021-05-05T13:51:33Z")

</div>

Wow, looks like you’ve done a lot of work on this! Those bindings look great! I know I’ve kind of made a mess of things, Frankenstein together parts of the original code and now 2 branches. I’m guessing the name of the last commit “no luck” means it didn’t work out?

---

<div class="post-metadata">

**Author:** ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)\
**Post date:** [May 5, 2021, 2:25pm UTC](https://discourse.julialang.org/t/cfunction-help/60263/24 "2021-05-05T14:25:51Z")

</div>

Yeah, it didn’t work 😕. If I could have more spare time, I’d like to try reimplementing the official example `paex_record.c` with the bare C API, but today is the last day of GW. 🙂

---

<div class="post-metadata">

**Author:** ![bramtayl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bramtayl/32/3614_2.png) [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Post date:** [May 5, 2021, 2:54pm UTC](https://discourse.julialang.org/t/cfunction-help/60263/25 "2021-05-05T14:54:58Z")

</div>

No problem! I should be working on other things too…

[Previous page](https://discourse.julialang.org/t/cfunction-help/60263.md?page=1)
