[erlang-questions] Real time audio transcoding with a port driver

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Tue Jul 2 16:27:43 CEST 2013

On Tue, Jul 2, 2013 at 11:40 AM, Dan Bender <danbenderr@REDACTED> wrote:

> Jesper, where can I read about dirty schedulers?
> Is there an ETA for R17?
> I saw something about native processes. Is there info about it?

Dirty schedulers are currently scheduled for R17 which is in turn planned
for a release around February 2014 I think. DS's and Native processes are
not there yet, so documentation on them are currently not existing and you
cannot in general rely on them being there in the next release.

You can use a NIF today, but you will have to solve the problem by either
breaking up your 3-4ms frame encoding in 4+ blocks and then call the NIF
multiple times. You should also be calling enif_consume_timeslice()
frequently while doing so.

The other solution is to have a background thread which communicates back
with a message when it is done. The NIF can then invoke this background
thread with work. I do not have an example however, of this being done.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130702/f078f3c3/attachment.htm>

More information about the erlang-questions mailing list