Workbench Library  0.1b
Config Struct Reference

Defines the structure for configuration settings. More...

#include <workbench.h>

Data Fields

AudioCallback audio_callback
 
MidiCallback midi_callback
 
void * user_data
 

Detailed Description

Defines the structure for configuration settings.

The Config structure holds all configuration settings for the application, including audio and MIDI parameters. The structure is generated by expanding the CONFIG macro with the WORKBENCH_CONFIG_DEFINE_STRUCT macro to declare each field.

Fields include settings for:

  • Audio callback function
  • MIDI callback function
  • MIDI input and output device names
  • Audio input and output device names
  • etc.

Example usage:

Config config;
config.sample_rate = 44100.0;
config.in_channel_count = 2;
// Other configuration settings
Defines the structure for configuration settings.
Definition: workbench.h:287
Examples
delay.c, and midi_monitor.c.

Field Documentation

◆ audio_callback

AudioCallback Config::audio_callback

Audio callback function pointer

◆ midi_callback

MidiCallback Config::midi_callback

MIDI callback function pointer

◆ user_data

void* Config::user_data

Pointer to a custom user data passed to callbacks


The documentation for this struct was generated from the following file: