<div dir="ltr"><div class="gmail_extra">I would write a small C program around libao and use it via port.</div><div class="gmail_extra"><br></div><div class="gmail_extra">forget about nif and drivers, because Mac + erlang + hardware access is something like broken: many of OSX API require to be run strictly from main thread which is used by erlang and nif will not get there.</div><div class="gmail_extra"><br></div><div class="gmail_extra">libao is good, if you need, I can share working example of code.</div><div class="gmail_extra"><br></div></div>