#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) |
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.
| int cs_sampler_destroy | ( | cs_sampler_t * | self | ) |
Destroy sampler
| int cs_sampler_init | ( | cs_sampler_t * | self, | |
| const char * | client_name, | |||
| jack_options_t | flags, | |||
| char * | server_name | |||
| ) |
Initialize sampler
| int cs_sampler_load | ( | cs_sampler_t * | self, | |
| char * | path | |||
| ) |
Load a file into the sampler
| path | the path where the sample is stored. This will load anything that libsndfile can read---so no proprietary formats. |
1.6.3