audiointerface

audiointerface

Functions

int (*initialize) ()
int (*destroy) ()
int (*reconfigure) ()
void start_playing ()
void stop_playing ()
int (*panic) ()
int audio_initialize ()
int audio_shutdown ()
void midi_play ()
void audio_play ()
void midi_stop ()
int play_midi_event ()
int play_note ()
int play_notes ()
int rhythm_feedback ()
int panic_all ()
gboolean read_event_from_queue ()
gboolean read_event_from_mixer_queue ()
gboolean read_event_from_rubberband_queue ()
gboolean write_samples_to_rubberband_queue ()
void update_playback_time ()
double get_playback_time ()
void input_midi_event ()
void queue_redraw_all ()
void queue_redraw_playhead ()
gboolean have_midi ()
void advance_time ()

Types and Values

Description

Functions

initialize ()

int
(*initialize) (DenemoPrefs *config);

destroy ()

int
(*destroy) ();

reconfigure ()

int
(*reconfigure) (DenemoPrefs *config);

start_playing ()

void
start_playing (gchar *callback);

stop_playing ()

void
stop_playing ();

panic ()

int
(*panic) ();

audio_initialize ()

int
audio_initialize (DenemoPrefs *config);

audio_shutdown ()

int
audio_shutdown ();

midi_play ()

void
midi_play (gchar *callback);

audio_play ()

void
audio_play (void);

midi_stop ()

void
midi_stop ();

play_midi_event ()

int
play_midi_event (backend_type_t backend,
                 int port,
                 unsigned char *buffer);

play_note ()

int
play_note (backend_type_t backend,
           int port,
           int channel,
           int key,
           int duration,
           int volume);

play_notes ()

int
play_notes (backend_type_t backend,
            int port,
            int channel,
            chord *chord_to_play);

rhythm_feedback ()

int
rhythm_feedback (backend_type_t backend,
                 int duration,
                 gboolean rest,
                 gboolean dot);

panic_all ()

int
panic_all (void);

read_event_from_queue ()

gboolean
read_event_from_queue (backend_type_t backend,
                       unsigned char *event_buffer,
                       size_t *event_length,
                       double *event_time,
                       double until_time);

read_event_from_mixer_queue ()

gboolean
read_event_from_mixer_queue (backend_type_t backend,
                             unsigned char *event_buffer,
                             size_t *event_length);

read_event_from_rubberband_queue ()

gboolean
read_event_from_rubberband_queue (backend_type_t backend,
                                  unsigned char *event_buffer,
                                  size_t *event_length);

write_samples_to_rubberband_queue ()

gboolean
write_samples_to_rubberband_queue (backend_type_t backend,
                                   float *sample,
                                   gint len);

update_playback_time ()

void
update_playback_time (backend_timebase_prio_t prio,
                      double new_time);

get_playback_time ()

double
get_playback_time ();

input_midi_event ()

void
input_midi_event (backend_type_t backend,
                  int port,
                  unsigned char *buffer);

queue_redraw_all ()

void
queue_redraw_all ();

queue_redraw_playhead ()

void
queue_redraw_playhead ();

have_midi ()

gboolean
have_midi (void);

advance_time ()

void
advance_time (gdouble seconds);

Types and Values

enum backend_type_t

Members

DEFAULT_BACKEND

   

AUDIO_BACKEND

   

MIDI_BACKEND

   

NUM_BACKENDS

#define NUM_BACKENDS 2

enum backend_timebase_prio_t

Members

TIMEBASE_PRIO_AUDIO

   

TIMEBASE_PRIO_MIDI

   

TIMEBASE_PRIO_DUMMY

   

smfmutex

extern GMutex smfmutex;