src/cshellsynth/clock.h File Reference

#include <jack/jack.h>
#include <cshellsynth/atomic-types.h>
#include <cshellsynth/jclient.h>

Go to the source code of this file.

Data Structures

struct  cs_clock_t

Defines

#define cs_clock_destroy(cs_clock)   jclient_destroy((jclient_t *) (cs_clock))

Functions

int cs_clock_init (cs_clock_t *self, const char *client_name, jack_options_t flags, char *server_name)
void cs_clock_set_meter (cs_clock_t *self, float meter)
void cs_clock_set_rate (cs_clock_t *self, float rate)

Detailed Description

Clock

Ruby version: Clock

The clock outputs a timestamp for each sample, in the range from [0,meter)


Define Documentation

#define cs_clock_destroy ( cs_clock   )     jclient_destroy((jclient_t *) (cs_clock))

Destroy clock

See jclient_destroy


Function Documentation

int cs_clock_init ( cs_clock_t self,
const char *  client_name,
jack_options_t  flags,
char *  server_name 
)

Initialize clock

See jclient_init

void cs_clock_set_meter ( cs_clock_t self,
float  meter 
)

Set meter

Ruby version: meter=

void cs_clock_set_rate ( cs_clock_t self,
float  rate 
)

Set rate

Ruby version: rate=

Parameters:
rate the rate. If <= 1, this is in beats per sample. Otherwise, the value is converted from beats per minute.
 All Data Structures Files Functions Variables Typedefs Enumerations Defines
Generated on Thu Sep 2 23:47:09 2010 for cshellsynth by  doxygen 1.6.3