src/cshellsynth/sampler.h File Reference

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

Go to the source code of this file.

Data Structures

struct  cs_sampler_sf_t
struct  cs_sampler_t

Functions

int cs_sampler_destroy (cs_sampler_t *self)
int cs_sampler_init (cs_sampler_t *self, const char *client_name, jack_options_t flags, char *server_name)
int cs_sampler_load (cs_sampler_t *self, char *path)

Detailed Description

Simple Sampler

Ruby version: Sampler

Loads some sound file and then plays it when ctl is triggered. Since there is no frequency parameter, obviously no resampling is done.


Function Documentation

int cs_sampler_destroy ( cs_sampler_t self  ) 

Destroy sampler

jclient_destroy

int cs_sampler_init ( cs_sampler_t self,
const char *  client_name,
jack_options_t  flags,
char *  server_name 
)

Initialize sampler

jclient_init

int cs_sampler_load ( cs_sampler_t self,
char *  path 
)

Load a file into the sampler

Parameters:
path the path where the sample is stored. This will load anything that libsndfile can read---so no proprietary formats.
 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