fluid_cmd.h
上传用户:tjmskj2
上传日期:2020-08-17
资源大小:577k
文件大小:5k
源码类别:

midi

开发平台:

C/C++

  1. /* FluidSynth - A Software Synthesizer
  2.  *
  3.  * Copyright (C) 2003  Peter Hanappe and others.
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Library General Public License
  7.  * as published by the Free Software Foundation; either version 2 of
  8.  * the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful, but
  11.  * WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Library General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Library General Public
  16.  * License along with this library; if not, write to the Free
  17.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  18.  * 02111-1307, USA
  19.  */
  20. #ifndef _FLUID_CMD_H
  21. #define _FLUID_CMD_H
  22. #include "fluidsynth_priv.h"
  23. void fluid_shell_settings(fluid_settings_t* settings);
  24. /** some help functions */
  25. int fluid_is_number(char* a);
  26. int fluid_is_empty(char* a);
  27. char* fluid_expand_path(char* path, char* new_path, int len);
  28. /** the handlers for the command lines */
  29. int fluid_handle_help(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  30. int fluid_handle_quit(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  31. int fluid_handle_noteon(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  32. int fluid_handle_noteoff(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  33. int fluid_handle_pitch_bend(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  34. int fluid_handle_pitch_bend_range(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  35. int fluid_handle_cc(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  36. int fluid_handle_prog(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  37. int fluid_handle_select(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  38. int fluid_handle_inst(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  39. int fluid_handle_channels(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  40. int fluid_handle_load(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  41. int fluid_handle_unload(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  42. int fluid_handle_reload(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  43. int fluid_handle_fonts(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  44. int fluid_handle_mstat(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  45. int fluid_handle_reverbpreset(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  46. int fluid_handle_reverbsetroomsize(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  47. int fluid_handle_reverbsetdamp(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  48. int fluid_handle_reverbsetwidth(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  49. int fluid_handle_reverbsetlevel(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  50. int fluid_handle_chorusnr(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  51. int fluid_handle_choruslevel(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  52. int fluid_handle_chorusspeed(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  53. int fluid_handle_chorusdepth(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  54. int fluid_handle_chorus(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  55. int fluid_handle_reverb(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  56. int fluid_handle_gain(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  57. int fluid_handle_interp(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  58. int fluid_handle_interpc(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  59. int fluid_handle_tuning(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  60. int fluid_handle_tune(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  61. int fluid_handle_settuning(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  62. int fluid_handle_resettuning(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  63. int fluid_handle_tunings(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  64. int fluid_handle_dumptuning(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  65. int fluid_handle_reset(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  66. int fluid_handle_source(fluid_cmd_handler_t* handler, int ac, char** av, fluid_ostream_t out);
  67. int fluid_handle_echo(fluid_cmd_handler_t* handler, int ac, char** av, fluid_ostream_t out);
  68. int fluid_handle_set(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  69. int fluid_handle_get(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  70. int fluid_handle_info(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  71. int fluid_handle_settings(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out);
  72. fluid_cmd_t* fluid_cmd_copy(fluid_cmd_t* cmd);
  73. void delete_fluid_cmd(fluid_cmd_t* cmd);
  74. int fluid_cmd_handler_handle(fluid_cmd_handler_t* handler,
  75.     int ac, char** av,
  76.     fluid_ostream_t out);
  77. void fluid_server_remove_client(fluid_server_t* server, fluid_client_t* client);
  78. void fluid_server_add_client(fluid_server_t* server, fluid_client_t* client);
  79. fluid_client_t* new_fluid_client(fluid_server_t* server,
  80.        fluid_settings_t* settings,
  81.        fluid_cmd_handler_t* handler,
  82.        fluid_socket_t sock);
  83. void delete_fluid_client(fluid_client_t* client);
  84. void fluid_client_quit(fluid_client_t* client);
  85. #endif /* _FLUID_CMD_H */