Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

liulk

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners