Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] PortAudio on ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-07-15 (02:13)
From: Likai Liu <liulk@b...>
Subject: Re: [Caml-list] PortAudio on ocaml

On Monday, July 14, 2003, at 08:37  PM, SooHyoung Oh wrote:

> I didn't read your message seriously,
> but in my first glance, what you want to seems to be asychroneous 
> threads.
> Why don't you use Event module of threads library?
> It's a Concurrent ML.

The implementation is up to the actual PortAudio implementors 
themselves, which is different on all the platforms that PortAudio runs 
on. They use a callback based API as the common interface that each 
PortAudio implementation would follow. I have no say over whether they 
should use Event module or otherwise. Event is synchronous. The problem 
of wrapping PortAudio callbacks using Event is that callbacks have a 
realtime requirement, that is, they're required to finish within a 
certain amount of time, so they must be processed right away, unlike 
Event that counts on being received at some convenient time. Callbacks 
need to return directly to PortAudio for further processing.

Hope this clarifies.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: