fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Dealing with startup


From: Benjamin Leggett
Subject: Re: [fluid-dev] Dealing with startup
Date: Tue, 14 Oct 2008 01:21:22 -0400

On Tue, 14 Oct 2008 05:06:36 +0000
John O'Hagan <address@hidden> wrote:

> Ben Leggett wrote:
> 
> >[...]
> >Currently, I start fluidsynth in a shell script in conjunction with
> >Dosbox, as opposed to systemwide, since the soundfont I use makes
> >fluidsynth take up quite a lot of memory.
> >
> >Because this soundfont is large, fluidsynth startup time can take
> >quite a while, and can vary depending on whether it's a cold start
> >or not.
> >
> >Is there a way in a shell script to tell if fluidsynth has finished
> >loading a font? Using "sleep" doesn't always produce the desired
> >effects, since the load time is, as I said, quite variable. To
> >recap, I need a way to wait for fluidsynth to finish loading before
> >I start anything else.
> 
> I recently came across the same issue; I dealt with it (in Python) by
> using a while loop  to keep trying to connect to fluidsynth server at
> its "localhost 9800" address:
> 
-snip- 
> Hopefully someone will point out if this is a bad way to do it!


Thanks much, that's a start. I'll give it a try.

Ben Leggett


-- 
Honey, those aren't children, they're packets of cream cheese.
                --Space Ghost

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]