feat: add a bounded WAV sampler with looping, relinking and saved presets
This commit is contained in:
parent
159fa939a1
commit
35bf6a00a1
24 changed files with 213 additions and 32 deletions
|
|
@ -156,6 +156,7 @@ xtc_result xtc_midi_plan_create(const xtc_project *project, unsigned int sample_
|
|||
*
|
||||
* @param plan Instrument plan and its single-owner runtime state.
|
||||
*/
|
||||
size_t xtc_midi_plan_asset_issues(const xtc_midi_plan *plan);
|
||||
void xtc_midi_plan_destroy(xtc_midi_plan *plan);
|
||||
/* Set before publication, while quiescent. Zero preserves raw scheduled notes.
|
||||
* Linear boundary envelopes do not delay note scheduling; live note-offs and
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ typedef struct { uint64_t tick; unsigned int port, step; float value; } xtc_plug
|
|||
typedef struct {
|
||||
char path[512], label[64];
|
||||
xtc_plugin_format format;
|
||||
char sample_path[512]; /* Internal sampler WAV reference; empty for other devices. */
|
||||
char identifier[128]; /* CLAP stable ID / VST3 class hex; empty for LADSPA/VST2. */
|
||||
unsigned int index, unique_id, inputs, control_count;
|
||||
unsigned int instrument; /* Zero-input note instrument; track binding only. */
|
||||
|
|
@ -68,6 +69,8 @@ xtc_result xtc_plugin_parameters(const xtc_plugin_spec *spec, double rate, xtc_p
|
|||
/* Metadata-only validation: never opens libraries. */
|
||||
xtc_result xtc_plugin_spec_validate(const xtc_plugin_spec *spec);
|
||||
xtc_result xtc_plugin_create(const xtc_plugin_spec *spec, double rate, size_t frames, xtc_plugin **out);
|
||||
size_t xtc_plugin_sample_frames(const xtc_plugin *plugin);
|
||||
size_t xtc_plugin_asset_issues(const xtc_plugin *plugin);
|
||||
void xtc_plugin_destroy(xtc_plugin *plugin); /* control, after quiescence */
|
||||
/* Single audio owner. No loading/allocation/I/O in host process; trusted run()
|
||||
* must obey realtime rules. No MIDI; max one mono input and one mono output.
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XTC_PROJECT_FORMAT_VERSION 14U
|
||||
#define XTC_PROJECT_FORMAT_VERSION 15U
|
||||
#define XTC_PROJECT_MAX_TRACKS 64U
|
||||
#define XTC_PROJECT_MAX_CLIPS 1024U
|
||||
#define XTC_PROJECT_NAME_BYTES 64U
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue