caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ken Rose <kenarose@earthlink.net>
To: Xavier Leroy <xavier.leroy@inria.fr>
Cc: Oleg <oleg_inconnu@myrealbox.com>, caml-list@inria.fr
Subject: Re: [Caml-list] Is anyone using caml for music or sound synthesis?
Date: Fri, 09 Aug 2002 10:01:50 -0700	[thread overview]
Message-ID: <3D53F57E.865A6618@earthlink.net> (raw)
In-Reply-To: <20020809153224.A29707@pauillac.inria.fr>

Xavier Leroy wrote:
> 
> > 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.

It's actually a lot easier to skip video frames than it is to skip audio
samples.  With audio, nearly anything you miss will produce an audible
pop, but it's often possible to skip a video frame or two without it
being very noticable.  MPEG "B" frames are the best candidates, since no
other frames depend on them.  You do have to eat the bitstream, but you
don't need to do any other decode, so you get a chance to get back
ahead.

 - ken
-------------------
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


  reply	other threads:[~2002-08-09 17:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-08 20:01 Will Benton
2002-08-08 22:36 ` Oleg
2002-08-09  5:18   ` Travis Bemann
2002-08-09  7:42     ` Nicolas Cannasse
2002-08-09  8:27       ` Markus Mottl
2002-08-09  8:50         ` William Chesters
2002-08-09  9:38           ` Oleg
2002-08-09 13:32   ` Xavier Leroy
2002-08-09 17:01     ` Ken Rose [this message]
2002-08-11 20:18 ` Thorsten Ohl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D53F57E.865A6618@earthlink.net \
    --to=kenarose@earthlink.net \
    --cc=caml-list@inria.fr \
    --cc=oleg_inconnu@myrealbox.com \
    --cc=rose@acm.org \
    --cc=xavier.leroy@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).