native_audio 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/README.md +152 -0
  4. data/ext/audio/audio.c +541 -43
  5. data/ext/audio/audio.h +34 -0
  6. data/ext/audio/delay_node.c +185 -0
  7. data/ext/audio/delay_node.h +51 -0
  8. data/ext/audio/extconf.rb +12 -110
  9. data/ext/audio/miniaudio.h +95844 -0
  10. data/ext/audio/reverb_node.c +224 -0
  11. data/ext/audio/reverb_node.h +63 -0
  12. data/lib/dummy_audio.rb +94 -0
  13. data/lib/native_audio.rb +78 -7
  14. metadata +12 -132
  15. data/assets/include/SDL2/SDL.h +0 -233
  16. data/assets/include/SDL2/SDL_assert.h +0 -326
  17. data/assets/include/SDL2/SDL_atomic.h +0 -415
  18. data/assets/include/SDL2/SDL_audio.h +0 -1500
  19. data/assets/include/SDL2/SDL_bits.h +0 -126
  20. data/assets/include/SDL2/SDL_blendmode.h +0 -198
  21. data/assets/include/SDL2/SDL_clipboard.h +0 -141
  22. data/assets/include/SDL2/SDL_config.h +0 -61
  23. data/assets/include/SDL2/SDL_config_android.h +0 -194
  24. data/assets/include/SDL2/SDL_config_emscripten.h +0 -218
  25. data/assets/include/SDL2/SDL_config_iphoneos.h +0 -217
  26. data/assets/include/SDL2/SDL_config_macosx.h +0 -277
  27. data/assets/include/SDL2/SDL_config_minimal.h +0 -95
  28. data/assets/include/SDL2/SDL_config_ngage.h +0 -89
  29. data/assets/include/SDL2/SDL_config_os2.h +0 -207
  30. data/assets/include/SDL2/SDL_config_pandora.h +0 -141
  31. data/assets/include/SDL2/SDL_config_windows.h +0 -331
  32. data/assets/include/SDL2/SDL_config_wingdk.h +0 -253
  33. data/assets/include/SDL2/SDL_config_winrt.h +0 -220
  34. data/assets/include/SDL2/SDL_config_xbox.h +0 -235
  35. data/assets/include/SDL2/SDL_copying.h +0 -20
  36. data/assets/include/SDL2/SDL_cpuinfo.h +0 -594
  37. data/assets/include/SDL2/SDL_egl.h +0 -2352
  38. data/assets/include/SDL2/SDL_endian.h +0 -348
  39. data/assets/include/SDL2/SDL_error.h +0 -163
  40. data/assets/include/SDL2/SDL_events.h +0 -1166
  41. data/assets/include/SDL2/SDL_filesystem.h +0 -149
  42. data/assets/include/SDL2/SDL_gamecontroller.h +0 -1074
  43. data/assets/include/SDL2/SDL_gesture.h +0 -117
  44. data/assets/include/SDL2/SDL_guid.h +0 -100
  45. data/assets/include/SDL2/SDL_haptic.h +0 -1341
  46. data/assets/include/SDL2/SDL_hidapi.h +0 -451
  47. data/assets/include/SDL2/SDL_hints.h +0 -2569
  48. data/assets/include/SDL2/SDL_image.h +0 -2173
  49. data/assets/include/SDL2/SDL_joystick.h +0 -1066
  50. data/assets/include/SDL2/SDL_keyboard.h +0 -353
  51. data/assets/include/SDL2/SDL_keycode.h +0 -358
  52. data/assets/include/SDL2/SDL_loadso.h +0 -115
  53. data/assets/include/SDL2/SDL_locale.h +0 -103
  54. data/assets/include/SDL2/SDL_log.h +0 -404
  55. data/assets/include/SDL2/SDL_main.h +0 -275
  56. data/assets/include/SDL2/SDL_messagebox.h +0 -193
  57. data/assets/include/SDL2/SDL_metal.h +0 -113
  58. data/assets/include/SDL2/SDL_misc.h +0 -79
  59. data/assets/include/SDL2/SDL_mixer.h +0 -2784
  60. data/assets/include/SDL2/SDL_mouse.h +0 -465
  61. data/assets/include/SDL2/SDL_mutex.h +0 -471
  62. data/assets/include/SDL2/SDL_name.h +0 -33
  63. data/assets/include/SDL2/SDL_opengl.h +0 -2132
  64. data/assets/include/SDL2/SDL_opengl_glext.h +0 -13209
  65. data/assets/include/SDL2/SDL_opengles.h +0 -39
  66. data/assets/include/SDL2/SDL_opengles2.h +0 -52
  67. data/assets/include/SDL2/SDL_opengles2_gl2.h +0 -656
  68. data/assets/include/SDL2/SDL_opengles2_gl2ext.h +0 -4033
  69. data/assets/include/SDL2/SDL_opengles2_gl2platform.h +0 -27
  70. data/assets/include/SDL2/SDL_opengles2_khrplatform.h +0 -311
  71. data/assets/include/SDL2/SDL_pixels.h +0 -644
  72. data/assets/include/SDL2/SDL_platform.h +0 -261
  73. data/assets/include/SDL2/SDL_power.h +0 -88
  74. data/assets/include/SDL2/SDL_quit.h +0 -58
  75. data/assets/include/SDL2/SDL_rect.h +0 -376
  76. data/assets/include/SDL2/SDL_render.h +0 -1919
  77. data/assets/include/SDL2/SDL_revision.h +0 -6
  78. data/assets/include/SDL2/SDL_rwops.h +0 -841
  79. data/assets/include/SDL2/SDL_scancode.h +0 -438
  80. data/assets/include/SDL2/SDL_sensor.h +0 -322
  81. data/assets/include/SDL2/SDL_shape.h +0 -155
  82. data/assets/include/SDL2/SDL_stdinc.h +0 -830
  83. data/assets/include/SDL2/SDL_surface.h +0 -997
  84. data/assets/include/SDL2/SDL_system.h +0 -623
  85. data/assets/include/SDL2/SDL_syswm.h +0 -386
  86. data/assets/include/SDL2/SDL_test.h +0 -69
  87. data/assets/include/SDL2/SDL_test_assert.h +0 -105
  88. data/assets/include/SDL2/SDL_test_common.h +0 -236
  89. data/assets/include/SDL2/SDL_test_compare.h +0 -69
  90. data/assets/include/SDL2/SDL_test_crc32.h +0 -124
  91. data/assets/include/SDL2/SDL_test_font.h +0 -168
  92. data/assets/include/SDL2/SDL_test_fuzzer.h +0 -386
  93. data/assets/include/SDL2/SDL_test_harness.h +0 -134
  94. data/assets/include/SDL2/SDL_test_images.h +0 -78
  95. data/assets/include/SDL2/SDL_test_log.h +0 -67
  96. data/assets/include/SDL2/SDL_test_md5.h +0 -129
  97. data/assets/include/SDL2/SDL_test_memory.h +0 -63
  98. data/assets/include/SDL2/SDL_test_random.h +0 -115
  99. data/assets/include/SDL2/SDL_thread.h +0 -464
  100. data/assets/include/SDL2/SDL_timer.h +0 -222
  101. data/assets/include/SDL2/SDL_touch.h +0 -150
  102. data/assets/include/SDL2/SDL_ttf.h +0 -2316
  103. data/assets/include/SDL2/SDL_types.h +0 -29
  104. data/assets/include/SDL2/SDL_version.h +0 -204
  105. data/assets/include/SDL2/SDL_video.h +0 -2150
  106. data/assets/include/SDL2/SDL_vulkan.h +0 -215
  107. data/assets/include/SDL2/begin_code.h +0 -187
  108. data/assets/include/SDL2/close_code.h +0 -40
  109. data/assets/macos/universal/lib/libFLAC.a +0 -0
  110. data/assets/macos/universal/lib/libSDL2.a +0 -0
  111. data/assets/macos/universal/lib/libSDL2_mixer.a +0 -0
  112. data/assets/macos/universal/lib/libmodplug.a +0 -0
  113. data/assets/macos/universal/lib/libmpg123.a +0 -0
  114. data/assets/macos/universal/lib/libogg.a +0 -0
  115. data/assets/macos/universal/lib/libvorbis.a +0 -0
  116. data/assets/macos/universal/lib/libvorbisfile.a +0 -0
  117. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a +0 -0
  118. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2.a +0 -0
  119. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_mixer.a +0 -0
  120. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a +0 -0
  121. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a +0 -0
  122. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a +0 -0
  123. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a +0 -0
  124. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a +0 -0
  125. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a +0 -0
  126. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a +0 -0
  127. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbis.a +0 -0
  128. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbisfile.a +0 -0
  129. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a +0 -0
  130. data/assets/windows/mingw-w64-x86_64/lib/libFLAC.a +0 -0
  131. data/assets/windows/mingw-w64-x86_64/lib/libSDL2.a +0 -0
  132. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a +0 -0
  133. data/assets/windows/mingw-w64-x86_64/lib/libmodplug.a +0 -0
  134. data/assets/windows/mingw-w64-x86_64/lib/libmpg123.a +0 -0
  135. data/assets/windows/mingw-w64-x86_64/lib/libogg.a +0 -0
  136. data/assets/windows/mingw-w64-x86_64/lib/libopus.a +0 -0
  137. data/assets/windows/mingw-w64-x86_64/lib/libopusfile.a +0 -0
  138. data/assets/windows/mingw-w64-x86_64/lib/libsndfile.a +0 -0
  139. data/assets/windows/mingw-w64-x86_64/lib/libstdc++.a +0 -0
  140. data/assets/windows/mingw-w64-x86_64/lib/libvorbis.a +0 -0
  141. data/assets/windows/mingw-w64-x86_64/lib/libvorbisfile.a +0 -0
  142. data/assets/windows/mingw-w64-x86_64/lib/libz.a +0 -0
  143. data/ext/audio/extconf.h +0 -3
@@ -1,39 +0,0 @@
1
- /*
2
- Simple DirectMedia Layer
3
- Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
-
5
- This software is provided 'as-is', without any express or implied
6
- warranty. In no event will the authors be held liable for any damages
7
- arising from the use of this software.
8
-
9
- Permission is granted to anyone to use this software for any purpose,
10
- including commercial applications, and to alter it and redistribute it
11
- freely, subject to the following restrictions:
12
-
13
- 1. The origin of this software must not be misrepresented; you must not
14
- claim that you wrote the original software. If you use this software
15
- in a product, an acknowledgment in the product documentation would be
16
- appreciated but is not required.
17
- 2. Altered source versions must be plainly marked as such, and must not be
18
- misrepresented as being the original software.
19
- 3. This notice may not be removed or altered from any source distribution.
20
- */
21
-
22
- /**
23
- * \file SDL_opengles.h
24
- *
25
- * This is a simple file to encapsulate the OpenGL ES 1.X API headers.
26
- */
27
- #include "SDL_config.h"
28
-
29
- #ifdef __IPHONEOS__
30
- #include <OpenGLES/ES1/gl.h>
31
- #include <OpenGLES/ES1/glext.h>
32
- #else
33
- #include <GLES/gl.h>
34
- #include <GLES/glext.h>
35
- #endif
36
-
37
- #ifndef APIENTRY
38
- #define APIENTRY
39
- #endif
@@ -1,52 +0,0 @@
1
- /*
2
- Simple DirectMedia Layer
3
- Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
-
5
- This software is provided 'as-is', without any express or implied
6
- warranty. In no event will the authors be held liable for any damages
7
- arising from the use of this software.
8
-
9
- Permission is granted to anyone to use this software for any purpose,
10
- including commercial applications, and to alter it and redistribute it
11
- freely, subject to the following restrictions:
12
-
13
- 1. The origin of this software must not be misrepresented; you must not
14
- claim that you wrote the original software. If you use this software
15
- in a product, an acknowledgment in the product documentation would be
16
- appreciated but is not required.
17
- 2. Altered source versions must be plainly marked as such, and must not be
18
- misrepresented as being the original software.
19
- 3. This notice may not be removed or altered from any source distribution.
20
- */
21
-
22
- /**
23
- * \file SDL_opengles2.h
24
- *
25
- * This is a simple file to encapsulate the OpenGL ES 2.0 API headers.
26
- */
27
- #include "SDL_config.h"
28
-
29
- #if !defined(_MSC_VER) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
30
-
31
- #ifdef __IPHONEOS__
32
- #include <OpenGLES/ES2/gl.h>
33
- #include <OpenGLES/ES2/glext.h>
34
- #else
35
- #include <GLES2/gl2platform.h>
36
- #include <GLES2/gl2.h>
37
- #include <GLES2/gl2ext.h>
38
- #endif
39
-
40
- #else /* _MSC_VER */
41
-
42
- /* OpenGL ES2 headers for Visual Studio */
43
- #include "SDL_opengles2_khrplatform.h"
44
- #include "SDL_opengles2_gl2platform.h"
45
- #include "SDL_opengles2_gl2.h"
46
- #include "SDL_opengles2_gl2ext.h"
47
-
48
- #endif /* _MSC_VER */
49
-
50
- #ifndef APIENTRY
51
- #define APIENTRY GL_APIENTRY
52
- #endif