流体合成  1.1.11
巨集 | 职能
misc.h文件参考

杂项实用程序运行并定义。 更多...

巨集

#define   FLUID_OK    (0)
 大多数libfluidsynth函数使用的表示成功的值。 更多...
 
#define   FLUID_FAILED    (-1)
 大多数libfluidsynth函数使用的指示失败的值。 更多...
 

职能

FLUIDSYNTH_API int   fluid_is_soundfont (const char *文件名)
 检查文件是否为SoundFont文件。 更多...
 
FLUIDSYNTH_API int   fluid_is_midifile (const char *文件名)
 检查文件是否为MIDI文件。 更多...
 

详细说明

杂项实用程序运行并定义。

宏定义文档

◆  FLUID_OK

#定义FLUID_OK   (0)

大多数libfluidsynth函数使用的表示成功的值。

以来
1.1.0

注意:在libfluidsynth 1.1.0之前没有公开定义。在编写也应与旧版本兼容的代码时,可以使用类似以下内容的代码:

#包括<fluidsynth.h>
#ifndef FLUID_OK
#定义FLUID_OK(0)
#定义FLUID_FAILED(-1)
#万一
例子:
流体合成 _register_adriver.c.

被引用 delete_fluid_midi_event(), delete_fluid_midi_router(), delete_fluid_player(), delete_fluid_ramsample(), delete_fluid_synth(), fluid_audio_driver_register(), fluid_cmd_handler_register(), fluid_file_renderer_process_block(), fluid_file_set_encoding_quality(), fluid_gen_set_default_values(), fluid_get_stdout() , fluid_get_sysconf() , fluid_is_soundfont (), fluid_midi_event_set_channel(), fluid_midi_event_set_control(), fluid_midi_event_set_key(), fluid_midi_event_set_pitch(), fluid_midi_event_set_program(), fluid_midi_event_set_sysex(), fluid_midi_event_set_type(), fluid_midi_event_set_value(), fluid_midi_event_set_velocity(), fluid_midi_router_add_rule(), fluid_midi_router_clear_rules(), fluid_midi_router_handle_midi_event(), fluid_midi_router_set_default_rules(), fluid_player_add() , fluid_player_add_mem(), fluid_player_get_midi_tempo(), fluid_player_join() , fluid_player_play() , fluid_player_set_loop(), fluid_player_set_midi_tempo(), fluid_player_set_playback_callback(), fluid_player_stop() , fluid_ramsfont_add_izone(), fluid_ramsfont_create_sfont(), fluid_ramsfont_izone_set_loop(), fluid_ramsfont_remove_izone(), fluid_ramsfont_set_name(), fluid_sample_set_name(), fluid_sample_set_sound_data(), fluid_synth_activate_key_tuning(), fluid_synth_activate_octave_tuning(), fluid_synth_activate_tuning(), fluid_synth_all_notes_off(), fluid_synth_all_sounds_off(), fluid_synth_alloc_voice(), fluid_synth_bank_select(), fluid_synth_cc() , fluid_synth_deactivate_tuning(), fluid_synth_get_cc(), fluid_synth_get_channel_info(), fluid_synth_get_cpu_load(), fluid_synth_get_pitch_bend(), fluid_synth_get_pitch_wheel_sens(), fluid_synth_get_program(), fluid_synth_noteoff(), fluid_synth_nwrite_float(), fluid_synth_process(), fluid_synth_program_reset(), fluid_synth_set_channel_type(), fluid_synth_set_chorus(), fluid_synth_set_gen(), fluid_synth_set_gen2(), fluid_synth_set_interp_method(), fluid_synth_set_polyphony(), fluid_synth_set_reverb(), fluid_synth_set_reverb_on(), fluid_synth_sfont_select(), fluid_synth_stop() , fluid_synth_sysex() , fluid_synth_system_reset(), fluid_synth_tune_notes(), fluid_synth_tuning_dump(), fluid_synth_write_float(), fluid_voice_gen_get(), fluid_voice_get_velocity(), fluid_voice_optimize_sample()fluid_voice_update_param().

◆  FLUID_FAILED

#定义FLUID_FAILED   (-1)

大多数libfluidsynth函数使用的指示失败的值。

以来
1.1.0

注意:请参阅 FLUID_OK 更多细节。

被引用 delete_fluid_midi_router(), delete_fluid_player(), fluid_audio_driver_register(), fluid_file_renderer_process_block(), fluid_file_set_encoding_quality(), fluid_get_sysconf() , fluid_log() , fluid_midi_event_set_sysex(), fluid_midi_router_add_rule(), fluid_midi_router_clear_rules(), fluid_midi_router_handle_midi_event(), fluid_midi_router_set_default_rules(), fluid_player_add() , fluid_player_add_mem(), fluid_player_play() , fluid_ramsfont_add_izone(), fluid_ramsfont_izone_set_gen(), fluid_ramsfont_izone_set_loop(), fluid_ramsfont_remove_izone(), fluid_sample_set_sound_data(), fluid_sequencer_add_midi_event_to_buffer(), fluid_sequencer_get_client_id(), fluid_sequencer_register_client(), fluid_sequencer_register_fluidsynth(), fluid_synth_activate_key_tuning(), fluid_synth_activate_octave_tuning(), fluid_synth_activate_tuning(), fluid_synth_add_sfont(), fluid_synth_all_notes_off(), fluid_synth_all_sounds_off(), fluid_synth_bank_select(), fluid_synth_cc() , fluid_synth_channel_pressure(), fluid_synth_deactivate_tuning(), fluid_synth_get_active_voice_count(), fluid_synth_get_cc(), fluid_synth_get_channel_info(), fluid_synth_get_cpu_load(), fluid_synth_get_gen(), fluid_synth_get_pitch_bend(), fluid_synth_get_pitch_wheel_sens(), fluid_synth_get_polyphony(), fluid_synth_get_program(), fluid_synth_get_settings(), fluid_synth_handle_midi_event(), fluid_synth_noteoff(), fluid_synth_noteon(), fluid_synth_pitch_bend(), fluid_synth_pitch_wheel_sens(), fluid_synth_process(), fluid_synth_program_change(), fluid_synth_program_reset(), fluid_synth_program_select(), fluid_synth_program_select_by_sfont_name(), fluid_synth_set_bank_offset(), fluid_synth_set_channel_type(), fluid_synth_set_chorus(), fluid_synth_set_gen(), fluid_synth_set_gen2(), fluid_synth_set_interp_method(), fluid_synth_set_polyphony(), fluid_synth_set_reverb(), fluid_synth_set_reverb_on(), fluid_synth_sfload(), fluid_synth_sfont_select(), fluid_synth_sfreload(), fluid_synth_sfunload(), fluid_synth_start() , fluid_synth_stop() , fluid_synth_sysex() , fluid_synth_system_reset(), fluid_synth_tune_notes(), fluid_synth_tuning_dump()fluid_synth_unset_program().

功能文件

◆  fluid_is_soundfont ()

FLUIDSYNTH_API int fluid_is_soundfont ( const char *   文档名称 )

检查文件是否为SoundFont文件。

参量
文档名称 要检查文件的路径
退货
如果可能是SoundFont,则为TRUE,否则为FALSE
注意
当前实现仅检查文件中的“ RIFF”标头。版>1.1.9还检查“ sfbk”标头。区分SoundFont和其他(例如MIDI)文件非常有用。

参考文献 FLUID_DBG , FLUID_ERR , FLUID_INFO , FLUID_OK FLUID_WARN .

◆  fluid_is_midifile ()

FLUIDSYNTH_API int fluid_is_midifile ( const char *   文档名称 )

检查文件是否为MIDI文件。

参量
文档名称 要检查文件的路径
退货
如果可能是MIDI文件,则为TRUE,否则为FALSE

当前实现仅检查文件中的“ MThd”标头。仅在区分SoundFont和MIDI文件时有用。