/src-c-linux32/BASS_BFX_ECHO3.cpp

https://github.com/jerome-jouvie/NativeBass · C++ · 125 lines · 68 code · 14 blank · 43 comment · 0 complexity · 34f998e64fd9922f9bad5f1c4814b961 MD5 · raw file

  1. /* DO NOT EDIT - AUTOGENERATED */
  2. /**
  3. * NativeBass Project
  4. *
  5. * Want to use BASS (www.un4seen.com) in the Java language ? NativeBass is made for you.
  6. * Copyright © 2007-2011 Jérôme JOUVIE
  7. *
  8. * Created on 02 jul. 2007
  9. * @version file v1.1.1
  10. * @author Jérôme JOUVIE (Jouvieje)
  11. * @site http://jerome.jouvie.free.fr/
  12. * @mail jerome.jouvie@gmail.com
  13. *
  14. *
  15. * INTRODUCTION
  16. * BASS is an audio library for use in Windows and Mac OSX software.
  17. * Its purpose is to provide developers with the most powerful and
  18. * efficient (yet easy to use), sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF,
  19. * custom generated, and more via add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX),
  20. * MO3 music (MP3/OGG compressed MODs),
  21. * and recording functions. All in a tiny DLL, under 100KB* in size.
  22. *
  23. * BASS official web site :
  24. * http://www.un4seen.com/
  25. *
  26. *
  27. * GNU LESSER GENERAL PUBLIC LICENSE
  28. *
  29. * This library is free software; you can redistribute it and/or
  30. * modify it under the terms of the GNU Lesser General Public License
  31. * as published by the Free Software Foundation; either version 2.1 of the License,
  32. * or (at your option) any later version.
  33. *
  34. * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  35. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  36. * See the GNU Lesser General Public License for more details.
  37. *
  38. * You should have received a copy of the GNU Lesser General Public License
  39. * along with this library; if not, write to the
  40. * Free Software Foundation, Inc.,
  41. * 59 Temple Place, Suite 330,
  42. * Boston, MA 02111-1307 USA
  43. */
  44. #include "NativeBass.h"
  45. #include "bass.h"
  46. #include "bassenc.h"
  47. #include "bassflac.h"
  48. #include "bassmidi.h"
  49. #include "bassmix.h"
  50. #include "basswv.h"
  51. #include "bass_aac.h"
  52. #include "bass_ac3.h"
  53. #include "bass_alac.h"
  54. #include "bass_fx.h"
  55. #include "bass_mpc.h"
  56. #include "bass_spx.h"
  57. #include "Utils.h"
  58. #include "Pointer.h"
  59. #include "JavaObject.h"
  60. #include "jouvieje_bass_structures_StructureJNI.h"
  61. #include "CallbackManager.h"
  62. JNIEXPORT jlong JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1new(JNIEnv *java_env, jclass jcls) {
  63. BASS_BFX_ECHO3 *result_ = new BASS_BFX_ECHO3();
  64. CheckAllocation(java_env, result_);
  65. N2J_PTR2ADR(jresult, result_, BASS_BFX_ECHO3 *);
  66. return jresult;
  67. }
  68. JNIEXPORT void JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1delete(JNIEnv *java_env, jclass jcls, jlong jpointer) {
  69. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  70. delete pointer;
  71. }
  72. JNIEXPORT jfloat JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1get_1fDryMix(JNIEnv *java_env, jclass jcls, jlong jpointer) {
  73. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  74. float result_ = pointer->fDryMix;
  75. return (jfloat)result_;
  76. }
  77. JNIEXPORT void JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1set_1fDryMix(JNIEnv *java_env, jclass jcls, jlong jpointer, jfloat jfDryMix) {
  78. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  79. float fDryMix = (float)jfDryMix;
  80. pointer->fDryMix = fDryMix;
  81. }
  82. JNIEXPORT jfloat JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1get_1fWetMix(JNIEnv *java_env, jclass jcls, jlong jpointer) {
  83. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  84. float result_ = pointer->fWetMix;
  85. return (jfloat)result_;
  86. }
  87. JNIEXPORT void JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1set_1fWetMix(JNIEnv *java_env, jclass jcls, jlong jpointer, jfloat jfWetMix) {
  88. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  89. float fWetMix = (float)jfWetMix;
  90. pointer->fWetMix = fWetMix;
  91. }
  92. JNIEXPORT jfloat JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1get_1fDelay(JNIEnv *java_env, jclass jcls, jlong jpointer) {
  93. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  94. float result_ = pointer->fDelay;
  95. return (jfloat)result_;
  96. }
  97. JNIEXPORT void JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1set_1fDelay(JNIEnv *java_env, jclass jcls, jlong jpointer, jfloat jfDelay) {
  98. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  99. float fDelay = (float)jfDelay;
  100. pointer->fDelay = fDelay;
  101. }
  102. JNIEXPORT jint JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1get_1lChannel(JNIEnv *java_env, jclass jcls, jlong jpointer) {
  103. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  104. int result_ = pointer->lChannel;
  105. return (jint)result_;
  106. }
  107. JNIEXPORT void JNICALL Java_jouvieje_bass_structures_StructureJNI_BASS_1BFX_1ECHO3_1set_1lChannel(JNIEnv *java_env, jclass jcls, jlong jpointer, jint jlChannel) {
  108. BASS_BFX_ECHO3 *pointer = N2J_CAST(jpointer, BASS_BFX_ECHO3 *);
  109. int lChannel = (int)jlChannel;
  110. pointer->lChannel = lChannel;
  111. }