Exemple #1
0
static void create_state(struct SoundPlugin *plugin, hash_t *state){
  printf("\n\n\n ********** CREATE_STATE ************* \n\n\n");
  Devdata *devdata = (Devdata*)plugin->data;

  HASH_put_string(state, "code", STRING_toBase64(STRING_create(devdata->code)));
  HASH_put_string(state, "options", STRING_toBase64(STRING_create(devdata->options)));
}
Exemple #2
0
static void create_state(struct SoundPlugin *plugin, hash_t *state){
  Data *data=(Data*)plugin->data;

  HASH_put_string(state, "filename", OS_saving_get_relative_path_if_possible(data->filename));
  HASH_put_int(state, "bank_num", data->bank_num);
  HASH_put_int(state, "preset_num", data->preset_num);
}
Exemple #3
0
static void create_state(struct SoundPlugin *plugin, hash_t *state){
  Data *data=(Data*)plugin->data;

  const wchar_t *maybe_relative_filename = OS_saving_get_relative_path_if_possible(data->filename);
  //printf("maybe: -%s- -%s-\n", data->filename, maybe_relative_filename);
  HASH_put_string(state, "filename", maybe_relative_filename);
  HASH_put_int(state, "instrument_number",data->instrument_number);
  HASH_put_int(state, "resampler_type",data->resampler_type);
}