RetroArch
Classes | Functions | Variables
alsa_midi.c File Reference
#include <alsa/asoundlib.h>
#include <libretro.h>
#include <verbosity.h>
#include <lists/string_list.h>
#include <string/stdstring.h>
#include "../midi_driver.h"
Include dependency graph for alsa_midi.c:

Classes

struct  alsa_midi_t
 

Functions

static bool alsa_midi_get_avail_ports (struct string_list *ports, unsigned caps)
 
static bool alsa_midi_get_port (snd_seq_t *seq, const char *name, unsigned caps, snd_seq_addr_t *addr)
 
static bool alsa_midi_get_avail_inputs (struct string_list *inputs)
 
static bool alsa_midi_get_avail_outputs (struct string_list *outputs)
 
static void alsa_midi_free (void *p)
 
static bool alsa_midi_set_input (void *p, const char *input)
 
static bool alsa_midi_set_output (void *p, const char *output)
 
static voidalsa_midi_init (const char *input, const char *output)
 
static bool alsa_midi_read (void *p, midi_event_t *event)
 
static bool alsa_midi_write (void *p, const midi_event_t *event)
 
static bool alsa_midi_flush (void *p)
 

Variables

static const snd_seq_event_type_t alsa_midi_ev_map [8]
 
midi_driver_t midi_alsa
 

Function Documentation

◆ alsa_midi_flush()

static bool alsa_midi_flush ( void p)
static
Here is the call graph for this function:

◆ alsa_midi_free()

static void alsa_midi_free ( void p)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ alsa_midi_get_avail_inputs()

static bool alsa_midi_get_avail_inputs ( struct string_list inputs)
static
Here is the call graph for this function:

◆ alsa_midi_get_avail_outputs()

static bool alsa_midi_get_avail_outputs ( struct string_list outputs)
static
Here is the call graph for this function:

◆ alsa_midi_get_avail_ports()

static bool alsa_midi_get_avail_ports ( struct string_list ports,
unsigned  caps 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ alsa_midi_get_port()

static bool alsa_midi_get_port ( snd_seq_t *  seq,
const char *  name,
unsigned  caps,
snd_seq_addr_t *  addr 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ alsa_midi_init()

static void* alsa_midi_init ( const char *  input,
const char *  output 
)
static
Here is the call graph for this function:

◆ alsa_midi_read()

static bool alsa_midi_read ( void p,
midi_event_t event 
)
static
Here is the call graph for this function:

◆ alsa_midi_set_input()

static bool alsa_midi_set_input ( void p,
const char *  input 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ alsa_midi_set_output()

static bool alsa_midi_set_output ( void p,
const char *  output 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ alsa_midi_write()

static bool alsa_midi_write ( void p,
const midi_event_t event 
)
static
Here is the call graph for this function:

Variable Documentation

◆ alsa_midi_ev_map

const snd_seq_event_type_t alsa_midi_ev_map[8]
static
Initial value:
=
{
SND_SEQ_EVENT_NOTEOFF,
SND_SEQ_EVENT_NOTEON,
SND_SEQ_EVENT_KEYPRESS,
SND_SEQ_EVENT_CONTROLLER,
SND_SEQ_EVENT_PGMCHANGE,
SND_SEQ_EVENT_CHANPRESS,
SND_SEQ_EVENT_PITCHBEND,
SND_SEQ_EVENT_SYSEX
}

◆ midi_alsa

midi_driver_t midi_alsa
Initial value:
= {
"alsa",
}
static bool alsa_midi_set_output(void *p, const char *output)
Definition: alsa_midi.c:207
static bool alsa_midi_get_avail_outputs(struct string_list *outputs)
Definition: alsa_midi.c:147
static bool alsa_midi_read(void *p, midi_event_t *event)
Definition: alsa_midi.c:304
static void * alsa_midi_init(const char *input, const char *output)
Definition: alsa_midi.c:268
static bool alsa_midi_write(void *p, const midi_event_t *event)
Definition: alsa_midi.c:396
static bool alsa_midi_set_input(void *p, const char *input)
Definition: alsa_midi.c:165
static bool alsa_midi_get_avail_inputs(struct string_list *inputs)
Definition: alsa_midi.c:141
static bool alsa_midi_flush(void *p)
Definition: alsa_midi.c:459
static void alsa_midi_free(void *p)
Definition: alsa_midi.c:153