Logo Search packages:      
Sourcecode: jcgui version File versions  Download package


 * Copyright (C) 2009 Hermann Meyer and James Warden
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 * --------------------------------------------------------------------------

/* ------- This is the JACK namespace ------- */

#pragma once

/* On Intel set FZ (Flush to Zero) and DAZ (Denormals Are Zero)
   flags to avoid costly denormals */
#ifdef __SSE__
#include <xmmintrin.h>
#ifdef __SSE2__
#define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8040)
#define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8000)

#define NJACKLAT (9) // number of possible latencies

namespace gx_jack

  /* -------- functions ---------- */
  bool gx_jack_init();
  void gx_jack_callbacks_and_activate();

  bool gx_start_jack_dialog();
  bool gx_start_jack(void* arg);

  void gx_set_jack_buffer_size(GtkCheckMenuItem*, gpointer);
  void gx_jack_connection(GtkCheckMenuItem*, gpointer);
  void gx_jack_port_connect(GtkWidget*, gpointer);
  void gx_jack_cleanup();

  /* client callbacks */
  int  gx_jack_srate_callback      (jack_nframes_t, void*);
  void gx_jack_shutdown_callback   (void*);
  int  gx_jack_graph_callback      (void*);
  int  gx_jack_xrun_callback       (void*);
  void gx_jack_port_callback       (jack_port_id_t, int, void*);
  int  gx_jack_buffersize_callback (jack_nframes_t, void*);
  void gx_jack_portreg_callback    (jack_port_id_t, int, void*);
  void gx_jack_clientreg_callback  (const char*, int, void*);
  void gx_jack_init_port_connection(const string*);

  /* processing */
  int gx_jack_process (jack_nframes_t, void*);

} /* end of jack namespace */

Generated by  Doxygen 1.6.0   Back to index