English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Is anyone using caml for music or sound synthesis?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-09 (13:32)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Is anyone using caml for music or sound synthesis?
> Speaking of multimedia, would GC prevent people from writing, say,
> an mp3 or a mpeg player in O'Caml?

For MP3, not at all.  Consider:
- GC pauses are well below 100ms (more like 10ms, actually)
  (provided the compactor is turned off)
- Sound drivers can usually buffer 0.5-1s of sound.
- MP3 decompression in real-time uses a small fraction of the CPU power.
Ergo, the sound buffer will easily mask the GC pauses.

MPEG video is another story: buffering is much more limited, and CPU
utilization is much higher.  But GC isn't the only source of potential
hiccups: disk accesses are as much of a problem, if not worse.

- Xavier Leroy
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