[Top][All Lists]

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

Re: [fluid-dev] Making MIDI player read from a buffer

From: James Le Cuirot
Subject: Re: [fluid-dev] Making MIDI player read from a buffer
Date: Mon, 18 Oct 2010 15:59:11 +0100

On Mon, 18 Oct 2010 16:53:07 +0200
David Henningsson <address@hidden> wrote:

> struct loadable_file
> {
>       char* filename;
>       void* data;
>       size_t data_length;
> }
> (You don't need an enum because either one will be NULL.)
> But then, at file load time, if filename != NULL, load the file into
> the data and data_length fields, then do midi parsing, followed by
> freeing the data buffer again. Then we at least have only one midi
> file in memory at a time.

Without getting too far into the details of it, this is the solution I
vaguely had in mind because it's relatively simple.


reply via email to

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