denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Midi/Audio out


From: Richard Shann
Subject: Re: [Denemo-devel] Midi/Audio out
Date: Fri, 23 Oct 2009 10:13:02 +0100

On Thu, 2009-10-22 at 17:25 -0500, Jeremiah Benham wrote:
> typedef enum {
>   PORTAUDIO,
>   JACK,
>   FLUIDSYNTH
> }audio_out_mode; 
> 
> Then ret->audio_out would be an integer? 
(Ideally)
Yes, use an enum, but store a string in the denemorc and convert on
reading/writing the values. You have to have an array of strings that
matches, you can make the assignment of values explicit:
typedef enum {
  PORTAUDIO=0,
  JACK=1,
  FLUIDSYNTH=2
}audio_out_mode; 

and put a comment warning that the array of strings has to match the
enum.
Richard






reply via email to

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