您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

54 行
1.9KB

  1. #ifndef CLM2XEN_H
  2. #define CLM2XEN_H
  3. #include "vct.h"
  4. typedef struct mus_xen mus_xen;
  5. #define Xen_to_mus_xen(arg) ((mus_xen *)Xen_object_ref(arg))
  6. #define Xen_to_mus_any(obj) mus_xen_gen(Xen_to_mus_xen(obj))
  7. #define MUS_CLM_DEFAULT_TABLE_SIZE 512
  8. #define MUS_CLM_DEFAULT_FREQUENCY 0.0
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. MUS_EXPORT mus_long_t clm_default_table_size_c(void);
  13. MUS_EXPORT mus_float_t clm_default_frequency_c(void);
  14. MUS_EXPORT mus_any *mus_xen_gen(mus_xen *x);
  15. MUS_EXPORT bool mus_is_xen(Xen obj);
  16. MUS_EXPORT const char *mus_fft_window_xen_name(mus_fft_window_t i);
  17. MUS_EXPORT Xen mus_xen_to_object(mus_xen *gn);
  18. MUS_EXPORT Xen mus_xen_to_object_with_vct(mus_xen *gn, Xen v);
  19. MUS_EXPORT mus_any *mus_optkey_to_mus_any(Xen key, const char *caller, int n, mus_any *def);
  20. MUS_EXPORT int mus_optkey_unscramble(const char *caller, int nkeys, Xen *keys, Xen *args, int *orig);
  21. MUS_EXPORT mus_float_t mus_optkey_to_float(Xen key, const char *caller, int n, mus_float_t def);
  22. MUS_EXPORT int mus_optkey_to_int(Xen key, const char *caller, int n, int def);
  23. MUS_EXPORT bool mus_optkey_to_bool(Xen key, const char *caller, int n, bool def);
  24. MUS_EXPORT mus_long_t mus_optkey_to_mus_long_t(Xen key, const char *caller, int n, mus_long_t def);
  25. MUS_EXPORT const char *mus_optkey_to_string(Xen key, const char *caller, int n, char *def);
  26. MUS_EXPORT Xen mus_optkey_to_procedure(Xen key, const char *caller, int n, Xen def, int required_args, const char *err);
  27. MUS_EXPORT mus_xen *mus_any_to_mus_xen(mus_any *ge);
  28. MUS_EXPORT mus_xen *mus_any_to_mus_xen_with_vct(mus_any *ge, Xen v);
  29. MUS_EXPORT mus_xen *mus_any_to_mus_xen_with_two_vcts(mus_any *ge, Xen v1, Xen v2);
  30. MUS_EXPORT Xen g_mus_channels(Xen obj);
  31. MUS_EXPORT Xen g_mus_length(Xen gen);
  32. MUS_EXPORT Xen g_mus_file_name(Xen gen);
  33. MUS_EXPORT Xen g_mus_data(Xen gen);
  34. #if HAVE_SCHEME
  35. MUS_EXPORT void s7_init_sndlib(s7_scheme *sc);
  36. #endif
  37. MUS_EXPORT void Init_sndlib(void);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif