Ejemplo n.º 1
0
struct mumble_t* mumble_new(mumble_settings_t settings)
{
    struct mumble_t* client = (struct mumble_t*)malloc(sizeof(struct mumble_t));

    if (!client)
        return NULL;

    client->settings = settings;

    if (mumble_init(client) != 0)
        return NULL;

    return client;
}
Ejemplo n.º 2
0
// This is the main entry point for mumble.
// glhf n____n
int main() {
  mumble_t * mumble;

  mumble = mumble_init(mumble);

  monome_register_handler(mumble->monome, MONOME_BUTTON_DOWN, button_handler, (void *)mumble);
  monome_register_handler(mumble->monome, MONOME_BUTTON_UP, button_handler, (void *)mumble);

  mumble_intro(mumble);

  monome_event_loop(mumble->monome);

  monome_close(mumble->monome);
  close(mumble->midi_fd);

  return 0;
}