react-native-gizwits-sdk-v5 1.5.5-thirdbluetooth → 1.5.6-thirdbluetooth

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 (129) hide show
  1. package/android/libs/sdk-bluetooth-release.aar +0 -0
  2. package/ios/GizwitsiOSSDK.framework/GizwitsiOSSDK +0 -0
  3. package/ios/GizwitsiOSSDK.framework/Headers/CocoaAsyncSocket.h +18 -0
  4. package/ios/GizwitsiOSSDK.framework/Headers/DDASLLogger.h +41 -0
  5. package/ios/GizwitsiOSSDK.framework/Headers/DDAbstractDatabaseLogger.h +102 -0
  6. package/ios/GizwitsiOSSDK.framework/Headers/DDContextFilterLogFormatter.h +63 -0
  7. package/ios/GizwitsiOSSDK.framework/Headers/DDDispatchQueueLogFormatter.h +128 -0
  8. package/ios/GizwitsiOSSDK.framework/Headers/DDFileLogger.h +340 -0
  9. package/ios/GizwitsiOSSDK.framework/Headers/DDLog+LOGV.h +99 -0
  10. package/ios/GizwitsiOSSDK.framework/Headers/DDLog.h +632 -0
  11. package/ios/GizwitsiOSSDK.framework/Headers/DDMultiFormatter.h +30 -0
  12. package/ios/GizwitsiOSSDK.framework/Headers/DDTTYLogger.h +171 -0
  13. package/ios/GizwitsiOSSDK.framework/Headers/ESPAES.h +19 -0
  14. package/ios/GizwitsiOSSDK.framework/Headers/ESPDataCode.h +44 -0
  15. package/ios/GizwitsiOSSDK.framework/Headers/ESPDatumCode.h +38 -0
  16. package/ios/GizwitsiOSSDK.framework/Headers/ESPGuideCode.h +15 -0
  17. package/ios/GizwitsiOSSDK.framework/Headers/ESPTools.h +22 -0
  18. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouch.h +36 -0
  19. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchDelegate.h +24 -0
  20. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchGenerator.h +46 -0
  21. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchResult.h +36 -0
  22. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTask.h +124 -0
  23. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTaskParameter.h +173 -0
  24. package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketClient.h +50 -0
  25. package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketServer.h +49 -0
  26. package/ios/GizwitsiOSSDK.framework/Headers/ESP_ByteUtil.h +128 -0
  27. package/ios/GizwitsiOSSDK.framework/Headers/ESP_CRC8.h +61 -0
  28. package/ios/GizwitsiOSSDK.framework/Headers/ESP_NetUtil.h +82 -0
  29. package/ios/GizwitsiOSSDK.framework/Headers/ESP_WifiUtil.h +33 -0
  30. package/ios/GizwitsiOSSDK.framework/Headers/ForegroundReconnection.h +23 -0
  31. package/ios/GizwitsiOSSDK.framework/Headers/GCDTimer.h +19 -0
  32. package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK-Swift.h +338 -0
  33. package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK.h +24 -0
  34. package/ios/GizwitsiOSSDK.framework/Headers/MQTTClient.h +39 -0
  35. package/ios/GizwitsiOSSDK.framework/Headers/MQTTInMemoryPersistence.h +16 -0
  36. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyDecoder.h +19 -0
  37. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyEncoder.h +18 -0
  38. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionLegacy.h +112 -0
  39. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionSynchron.h +194 -0
  40. package/ios/GizwitsiOSSDK.framework/Headers/MQTTStrict.h +33 -0
  41. package/ios/GizwitsiOSSDK.framework/Headers/MQTTUntil.h +14 -0
  42. package/ios/GizwitsiOSSDK.framework/Headers/ReconnectTimer.h +21 -0
  43. package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncSocket.h +1226 -0
  44. package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncUdpSocket.h +1036 -0
  45. package/ios/GizwitsiOSSDK.framework/Headers/_GizwitsParser.h +61 -0
  46. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketDecoder.h +39 -0
  47. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketEncoder.h +38 -0
  48. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketTransport.h +79 -0
  49. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCoreDataPersistence.h +21 -0
  50. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTDecoder.h +66 -0
  51. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTLog.h +123 -0
  52. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTMessage.h +233 -0
  53. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTPersistence.h +124 -0
  54. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTProperties.h +76 -0
  55. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicy.h +158 -0
  56. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicyTransport.h +30 -0
  57. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSession.h +886 -0
  58. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSessionManager.h +237 -0
  59. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTTransport.h +114 -0
  60. package/ios/GizwitsiOSSDK.framework/Headers/_SSZipArchive.h +178 -0
  61. package/ios/GizwitsiOSSDK.framework/Headers/_SSZipCommon.h +71 -0
  62. package/ios/GizwitsiOSSDK.framework/Headers/_ZipArchive.h +26 -0
  63. package/ios/GizwitsiOSSDK.framework/Headers/a_weighting.h +88 -0
  64. package/ios/GizwitsiOSSDK.framework/Headers/aubio.h +231 -0
  65. package/ios/GizwitsiOSSDK.framework/Headers/audio_unit.h +61 -0
  66. package/ios/GizwitsiOSSDK.framework/Headers/awhitening.h +125 -0
  67. package/ios/GizwitsiOSSDK.framework/Headers/beattracking.h +121 -0
  68. package/ios/GizwitsiOSSDK.framework/Headers/biquad.h +75 -0
  69. package/ios/GizwitsiOSSDK.framework/Headers/c_weighting.h +88 -0
  70. package/ios/GizwitsiOSSDK.framework/Headers/common.h +104 -0
  71. package/ios/GizwitsiOSSDK.framework/Headers/cvec.h +247 -0
  72. package/ios/GizwitsiOSSDK.framework/Headers/dct.h +85 -0
  73. package/ios/GizwitsiOSSDK.framework/Headers/fft.h +144 -0
  74. package/ios/GizwitsiOSSDK.framework/Headers/filter.h +176 -0
  75. package/ios/GizwitsiOSSDK.framework/Headers/filterbank.h +90 -0
  76. package/ios/GizwitsiOSSDK.framework/Headers/filterbank_mel.h +72 -0
  77. package/ios/GizwitsiOSSDK.framework/Headers/fmat.h +172 -0
  78. package/ios/GizwitsiOSSDK.framework/Headers/fvec.h +178 -0
  79. package/ios/GizwitsiOSSDK.framework/Headers/hist.h +63 -0
  80. package/ios/GizwitsiOSSDK.framework/Headers/ioutils.h +60 -0
  81. package/ios/GizwitsiOSSDK.framework/Headers/log.h +99 -0
  82. package/ios/GizwitsiOSSDK.framework/Headers/lvec.h +118 -0
  83. package/ios/GizwitsiOSSDK.framework/Headers/mathutils.h +330 -0
  84. package/ios/GizwitsiOSSDK.framework/Headers/mfcc.h +79 -0
  85. package/ios/GizwitsiOSSDK.framework/Headers/musicutils.h +171 -0
  86. package/ios/GizwitsiOSSDK.framework/Headers/notes.h +113 -0
  87. package/ios/GizwitsiOSSDK.framework/Headers/onset.h +347 -0
  88. package/ios/GizwitsiOSSDK.framework/Headers/parameter.h +159 -0
  89. package/ios/GizwitsiOSSDK.framework/Headers/peakpicker.h +57 -0
  90. package/ios/GizwitsiOSSDK.framework/Headers/phasevoc.h +112 -0
  91. package/ios/GizwitsiOSSDK.framework/Headers/pitch.h +197 -0
  92. package/ios/GizwitsiOSSDK.framework/Headers/pitchfcomb.h +76 -0
  93. package/ios/GizwitsiOSSDK.framework/Headers/pitchmcomb.h +77 -0
  94. package/ios/GizwitsiOSSDK.framework/Headers/pitchschmitt.h +75 -0
  95. package/ios/GizwitsiOSSDK.framework/Headers/pitchspecacf.h +103 -0
  96. package/ios/GizwitsiOSSDK.framework/Headers/pitchyin.h +100 -0
  97. package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfast.h +102 -0
  98. package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfft.h +99 -0
  99. package/ios/GizwitsiOSSDK.framework/Headers/resampler.h +65 -0
  100. package/ios/GizwitsiOSSDK.framework/Headers/sampler.h +140 -0
  101. package/ios/GizwitsiOSSDK.framework/Headers/scale.h +80 -0
  102. package/ios/GizwitsiOSSDK.framework/Headers/sink.h +181 -0
  103. package/ios/GizwitsiOSSDK.framework/Headers/sink_apple_audio.h +163 -0
  104. package/ios/GizwitsiOSSDK.framework/Headers/sink_sndfile.h +162 -0
  105. package/ios/GizwitsiOSSDK.framework/Headers/sink_wavwrite.h +162 -0
  106. package/ios/GizwitsiOSSDK.framework/Headers/source.h +184 -0
  107. package/ios/GizwitsiOSSDK.framework/Headers/source_apple_audio.h +156 -0
  108. package/ios/GizwitsiOSSDK.framework/Headers/source_avcodec.h +155 -0
  109. package/ios/GizwitsiOSSDK.framework/Headers/source_sndfile.h +155 -0
  110. package/ios/GizwitsiOSSDK.framework/Headers/source_wavread.h +160 -0
  111. package/ios/GizwitsiOSSDK.framework/Headers/specdesc.h +204 -0
  112. package/ios/GizwitsiOSSDK.framework/Headers/tempo.h +255 -0
  113. package/ios/GizwitsiOSSDK.framework/Headers/tss.h +103 -0
  114. package/ios/GizwitsiOSSDK.framework/Headers/types.h +70 -0
  115. package/ios/GizwitsiOSSDK.framework/Headers/vecutils.h +116 -0
  116. package/ios/GizwitsiOSSDK.framework/Headers/wavetable.h +178 -0
  117. package/ios/GizwitsiOSSDK.framework/Info.plist +0 -0
  118. package/ios/GizwitsiOSSDK.framework/LICENSE +17 -0
  119. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  120. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.abi.json +57489 -0
  121. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +1752 -0
  122. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  123. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftinterface +1752 -0
  124. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  125. package/ios/GizwitsiOSSDK.framework/Modules/module.modulemap +11 -0
  126. package/ios/GizwitsiOSSDK.framework/PrivacyInfo.xcprivacy +23 -0
  127. package/ios/GizwitsiOSSDK.framework/README.md +31 -0
  128. package/package.json +1 -1
  129. package/react-native-gizwits-sdk-v5.podspec +2 -2
@@ -0,0 +1,80 @@
1
+ /*
2
+ Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
3
+
4
+ This file is part of aubio.
5
+
6
+ aubio is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ aubio is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with aubio. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ */
20
+
21
+ /** \file
22
+
23
+ Vector scaling function
24
+
25
+ This object, inspired from the scale object in FTS, the jMax engine, scales
26
+ the values of a vector according to an affine function defined as follow:
27
+
28
+ \f$ y = (x - ilow)*(ohig-olow)/(ihig-ilow) + olow \f$
29
+
30
+ */
31
+ #ifndef AUBIO_SCALE_H
32
+ #define AUBIO_SCALE_H
33
+
34
+ #ifdef __cplusplus
35
+ extern "C" {
36
+ #endif
37
+
38
+ /** scale object */
39
+ typedef struct _aubio_scale_t aubio_scale_t;
40
+
41
+ /** create a scale object
42
+
43
+ \param flow lower value of output function
44
+ \param fhig higher value of output function
45
+ \param ilow lower value of input function
46
+ \param ihig higher value of output function
47
+
48
+ */
49
+ aubio_scale_t * new_aubio_scale(smpl_t flow, smpl_t fhig,
50
+ smpl_t ilow, smpl_t ihig);
51
+ /** delete a scale object
52
+
53
+ \param s scale object as returned by new_aubio_scale
54
+
55
+ */
56
+ void del_aubio_scale(aubio_scale_t *s);
57
+ /** scale input vector
58
+
59
+ \param s scale object as returned by new_aubio_scale
60
+ \param input vector to scale
61
+
62
+ */
63
+ void aubio_scale_do(aubio_scale_t *s, fvec_t * input);
64
+ /** modify scale parameters after object creation
65
+
66
+ \param s scale object as returned by new_aubio_scale
67
+ \param olow lower value of output function
68
+ \param ohig higher value of output function
69
+ \param ilow lower value of input function
70
+ \param ihig higher value of output function
71
+
72
+ */
73
+ uint_t aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
74
+ smpl_t olow, smpl_t ohig);
75
+
76
+ #ifdef __cplusplus
77
+ }
78
+ #endif
79
+
80
+ #endif /* AUBIO_SCALE_H */
@@ -0,0 +1,181 @@
1
+ /*
2
+ Copyright (C) 2012-2014 Paul Brossier <piem@aubio.org>
3
+
4
+ This file is part of aubio.
5
+
6
+ aubio is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ aubio is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with aubio. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ */
20
+
21
+ #ifndef AUBIO_SINK_H
22
+ #define AUBIO_SINK_H
23
+
24
+ /** \file
25
+
26
+ Media sink to write blocks of consecutive audio samples to file.
27
+
28
+ To read from file, use ::aubio_source_t.
29
+
30
+ Depending on how aubio was compiled, the following sinks will be available.
31
+
32
+ When creating a new sink using ::new_aubio_sink, the new function of each of
33
+ the compiled-in sinks will be attempted, in the following order, until one of
34
+ them gets successfully created. If all sinks returned NULL, ::new_aubio_sink
35
+ will return NULL.
36
+
37
+ \b \p sink_apple_audio : ExtAudioFileRef
38
+
39
+ This sink uses CoreAudio [Extended Audio File Services]
40
+ (https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/ExtendedAudioFileServicesReference/Reference/reference.html)
41
+ to write 16-bits encoded WAV files.
42
+
43
+ \b \p sink_sndfile : libsndfile
44
+
45
+ This sink uses [libsndfile](http://www.mega-nerd.com/libsndfile/) to write
46
+ 16-bits encoded WAV files.
47
+
48
+ \b \p sink_wavwrite : native WAV write
49
+
50
+ A simple sink to write 16-bits PCM RIFF encoded WAV files.
51
+
52
+ \example io/test-sink.c
53
+
54
+ */
55
+
56
+ #ifdef __cplusplus
57
+ extern "C" {
58
+ #endif
59
+
60
+ /** media sink object */
61
+ typedef struct _aubio_sink_t aubio_sink_t;
62
+
63
+ /**
64
+
65
+ create new ::aubio_sink_t
66
+
67
+ \param uri the file path or uri to write to
68
+ \param samplerate sample rate to write the file at
69
+
70
+ \return newly created ::aubio_sink_t
71
+
72
+ Creates a new sink object.
73
+
74
+ If samplerate is set to 0, the creation of the file will be delayed until
75
+ both ::aubio_sink_preset_samplerate and ::aubio_sink_preset_channels have
76
+ been called.
77
+
78
+ */
79
+ aubio_sink_t * new_aubio_sink(const char_t * uri, uint_t samplerate);
80
+
81
+ /**
82
+
83
+ preset sink samplerate
84
+
85
+ \param s sink, created with ::new_aubio_sink
86
+ \param samplerate samplerate to preset the sink to, in Hz
87
+
88
+ \return 0 on success, 1 on error
89
+
90
+ Preset the samplerate of the sink. The file should have been created using a
91
+ samplerate of 0.
92
+
93
+ The file will be opened only when both samplerate and channels have been set.
94
+
95
+ */
96
+ uint_t aubio_sink_preset_samplerate(aubio_sink_t *s, uint_t samplerate);
97
+
98
+ /**
99
+
100
+ preset sink channels
101
+
102
+ \param s sink, created with ::new_aubio_sink
103
+ \param channels number of channels to preset the sink to
104
+
105
+ \return 0 on success, 1 on error
106
+
107
+ Preset the samplerate of the sink. The file should have been created using a
108
+ samplerate of 0.
109
+
110
+ The file will be opened only when both samplerate and channels have been set.
111
+
112
+ */
113
+ uint_t aubio_sink_preset_channels(aubio_sink_t *s, uint_t channels);
114
+
115
+ /**
116
+
117
+ get samplerate of sink object
118
+
119
+ \param s sink object, created with ::new_aubio_sink
120
+ \return samplerate, in Hz
121
+
122
+ */
123
+ uint_t aubio_sink_get_samplerate(const aubio_sink_t *s);
124
+
125
+ /**
126
+
127
+ get channels of sink object
128
+
129
+ \param s sink object, created with ::new_aubio_sink
130
+ \return number of channels
131
+
132
+ */
133
+ uint_t aubio_sink_get_channels(const aubio_sink_t *s);
134
+
135
+ /**
136
+
137
+ write monophonic vector of length hop_size to sink
138
+
139
+ \param s sink, created with ::new_aubio_sink
140
+ \param write_data ::fvec_t samples to write to sink
141
+ \param write number of frames to write
142
+
143
+ */
144
+ void aubio_sink_do(aubio_sink_t * s, fvec_t * write_data, uint_t write);
145
+
146
+ /**
147
+
148
+ write polyphonic vector of length hop_size to sink
149
+
150
+ \param s sink, created with ::new_aubio_sink
151
+ \param write_data ::fmat_t samples to write to sink
152
+ \param write number of frames to write
153
+
154
+ */
155
+ void aubio_sink_do_multi(aubio_sink_t * s, fmat_t * write_data, uint_t write);
156
+
157
+ /**
158
+
159
+ close sink
160
+
161
+ \param s sink object, created with ::new_aubio_sink
162
+
163
+ \return 0 on success, non-zero on failure
164
+
165
+ */
166
+ uint_t aubio_sink_close(aubio_sink_t * s);
167
+
168
+ /**
169
+
170
+ close sink and cleanup memory
171
+
172
+ \param s sink object, created with ::new_aubio_sink
173
+
174
+ */
175
+ void del_aubio_sink(aubio_sink_t * s);
176
+
177
+ #ifdef __cplusplus
178
+ }
179
+ #endif
180
+
181
+ #endif /* AUBIO_SINK_H */
@@ -0,0 +1,163 @@
1
+ /*
2
+ Copyright (C) 2012-2014 Paul Brossier <piem@aubio.org>
3
+
4
+ This file is part of aubio.
5
+
6
+ aubio is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ aubio is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with aubio. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ */
20
+
21
+ #ifndef AUBIO_SINK_APPLE_AUDIO_H
22
+ #define AUBIO_SINK_APPLE_AUDIO_H
23
+
24
+ /** \file
25
+
26
+ Write to file using Apple AudioToolbox's
27
+ [ExtAudioFileRef](https://developer.apple.com/library/ios/#documentation/MusicAudio/Reference/ExtendedAudioFileServicesReference/Reference/reference.html)
28
+
29
+ Avoid including this file directly! Prefer using ::aubio_sink_t instead to
30
+ make your code portable.
31
+
32
+ To read from file, use ::aubio_source_t.
33
+
34
+ \example io/test-sink_apple_audio.c
35
+
36
+ */
37
+
38
+ #ifdef __cplusplus
39
+ extern "C" {
40
+ #endif
41
+
42
+ /** sink_apple_audio object */
43
+ typedef struct _aubio_sink_apple_audio_t aubio_sink_apple_audio_t;
44
+
45
+ /**
46
+
47
+ create new ::aubio_sink_apple_audio_t
48
+
49
+ \param uri the file path or uri to write to
50
+ \param samplerate sample rate to write the file at
51
+
52
+ \return newly created ::aubio_sink_apple_audio_t
53
+
54
+ Creates a new sink object.
55
+
56
+ If samplerate is set to 0, the creation of the file will be delayed until
57
+ both ::aubio_sink_preset_samplerate and ::aubio_sink_preset_channels have
58
+ been called.
59
+
60
+ */
61
+ aubio_sink_apple_audio_t * new_aubio_sink_apple_audio(const char_t * uri, uint_t samplerate);
62
+
63
+ /**
64
+
65
+ preset sink samplerate
66
+
67
+ \param s sink, created with ::new_aubio_sink_apple_audio
68
+ \param samplerate samplerate to preset the sink to, in Hz
69
+
70
+ \return 0 on success, 1 on error
71
+
72
+ Preset the samplerate of the sink. The file should have been created using a
73
+ samplerate of 0.
74
+
75
+ The file will be opened only when both samplerate and channels have been set.
76
+
77
+ */
78
+ uint_t aubio_sink_apple_audio_preset_samplerate(aubio_sink_apple_audio_t *s, uint_t samplerate);
79
+
80
+ /**
81
+
82
+ preset sink channels
83
+
84
+ \param s sink, created with ::new_aubio_sink_apple_audio
85
+ \param channels number of channels to preset the sink to
86
+
87
+ \return 0 on success, 1 on error
88
+
89
+ Preset the samplerate of the sink. The file should have been created using a
90
+ samplerate of 0.
91
+
92
+ The file will be opened only when both samplerate and channels have been set.
93
+
94
+ */
95
+ uint_t aubio_sink_apple_audio_preset_channels(aubio_sink_apple_audio_t *s, uint_t channels);
96
+
97
+ /**
98
+
99
+ get samplerate of sink object
100
+
101
+ \param s sink object, created with ::new_aubio_sink_apple_audio
102
+ \return samplerate, in Hz
103
+
104
+ */
105
+ uint_t aubio_sink_apple_audio_get_samplerate(const aubio_sink_apple_audio_t *s);
106
+
107
+ /**
108
+
109
+ get channels of sink object
110
+
111
+ \param s sink object, created with ::new_aubio_sink_apple_audio
112
+ \return number of channels
113
+
114
+ */
115
+ uint_t aubio_sink_apple_audio_get_channels(const aubio_sink_apple_audio_t *s);
116
+
117
+ /**
118
+
119
+ write monophonic vector of length hop_size to sink
120
+
121
+ \param s sink, created with ::new_aubio_sink_apple_audio
122
+ \param write_data ::fvec_t samples to write to sink
123
+ \param write number of frames to write
124
+
125
+ */
126
+ void aubio_sink_apple_audio_do(aubio_sink_apple_audio_t * s, fvec_t * write_data, uint_t write);
127
+
128
+ /**
129
+
130
+ write polyphonic vector of length hop_size to sink
131
+
132
+ \param s sink, created with ::new_aubio_sink_apple_audio
133
+ \param write_data ::fmat_t samples to write to sink
134
+ \param write number of frames to write
135
+
136
+ */
137
+ void aubio_sink_apple_audio_do_multi(aubio_sink_apple_audio_t * s, fmat_t * write_data, uint_t write);
138
+
139
+ /**
140
+
141
+ close sink
142
+
143
+ \param s sink_apple_audio object, created with ::new_aubio_sink_apple_audio
144
+
145
+ \return 0 on success, non-zero on failure
146
+
147
+ */
148
+ uint_t aubio_sink_apple_audio_close(aubio_sink_apple_audio_t * s);
149
+
150
+ /**
151
+
152
+ close sink and cleanup memory
153
+
154
+ \param s sink, created with ::new_aubio_sink_apple_audio
155
+
156
+ */
157
+ void del_aubio_sink_apple_audio(aubio_sink_apple_audio_t * s);
158
+
159
+ #ifdef __cplusplus
160
+ }
161
+ #endif
162
+
163
+ #endif /* AUBIO_SINK_APPLE_AUDIO_H */
@@ -0,0 +1,162 @@
1
+ /*
2
+ Copyright (C) 2012-2014 Paul Brossier <piem@aubio.org>
3
+
4
+ This file is part of aubio.
5
+
6
+ aubio is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ aubio is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with aubio. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ */
20
+
21
+ #ifndef AUBIO_SINK_SNDFILE_H
22
+ #define AUBIO_SINK_SNDFILE_H
23
+
24
+ /** \file
25
+
26
+ Write to file using [libsndfile](http://www.mega-nerd.com/libsndfile/)
27
+
28
+ Avoid including this file directly! Prefer using ::aubio_sink_t instead to
29
+ make your code portable.
30
+
31
+ To read from file, use ::aubio_source_t.
32
+
33
+ \example io/test-sink_sndfile.c
34
+
35
+ */
36
+
37
+ #ifdef __cplusplus
38
+ extern "C" {
39
+ #endif
40
+
41
+ /** sink_sndfile object */
42
+ typedef struct _aubio_sink_sndfile_t aubio_sink_sndfile_t;
43
+
44
+ /**
45
+
46
+ create new ::aubio_sink_sndfile_t
47
+
48
+ \param uri the file path or uri to write to
49
+ \param samplerate sample rate to write the file at
50
+
51
+ \return newly created ::aubio_sink_sndfile_t
52
+
53
+ Creates a new sink object.
54
+
55
+ If samplerate is set to 0, the creation of the file will be delayed until
56
+ both ::aubio_sink_preset_samplerate and ::aubio_sink_preset_channels have
57
+ been called.
58
+
59
+ */
60
+ aubio_sink_sndfile_t * new_aubio_sink_sndfile(const char_t * uri, uint_t samplerate);
61
+
62
+ /**
63
+
64
+ preset sink samplerate
65
+
66
+ \param s sink, created with ::new_aubio_sink_sndfile
67
+ \param samplerate samplerate to preset the sink to, in Hz
68
+
69
+ \return 0 on success, 1 on error
70
+
71
+ Preset the samplerate of the sink. The file should have been created using a
72
+ samplerate of 0.
73
+
74
+ The file will be opened only when both samplerate and channels have been set.
75
+
76
+ */
77
+ uint_t aubio_sink_sndfile_preset_samplerate(aubio_sink_sndfile_t *s, uint_t samplerate);
78
+
79
+ /**
80
+
81
+ preset sink channels
82
+
83
+ \param s sink, created with ::new_aubio_sink_sndfile
84
+ \param channels number of channels to preset the sink to
85
+
86
+ \return 0 on success, 1 on error
87
+
88
+ Preset the samplerate of the sink. The file should have been created using a
89
+ samplerate of 0.
90
+
91
+ The file will be opened only when both samplerate and channels have been set.
92
+
93
+ */
94
+ uint_t aubio_sink_sndfile_preset_channels(aubio_sink_sndfile_t *s, uint_t channels);
95
+
96
+ /**
97
+
98
+ get samplerate of sink object
99
+
100
+ \param s sink object, created with ::new_aubio_sink_sndfile
101
+ \return samplerate, in Hz
102
+
103
+ */
104
+ uint_t aubio_sink_sndfile_get_samplerate(const aubio_sink_sndfile_t *s);
105
+
106
+ /**
107
+
108
+ get channels of sink object
109
+
110
+ \param s sink object, created with ::new_aubio_sink_sndfile
111
+ \return number of channels
112
+
113
+ */
114
+ uint_t aubio_sink_sndfile_get_channels(const aubio_sink_sndfile_t *s);
115
+
116
+ /**
117
+
118
+ write monophonic vector of length hop_size to sink
119
+
120
+ \param s sink, created with ::new_aubio_sink_sndfile
121
+ \param write_data ::fvec_t samples to write to sink
122
+ \param write number of frames to write
123
+
124
+ */
125
+ void aubio_sink_sndfile_do(aubio_sink_sndfile_t * s, fvec_t * write_data, uint_t write);
126
+
127
+ /**
128
+
129
+ write polyphonic vector of length hop_size to sink
130
+
131
+ \param s sink, created with ::new_aubio_sink_sndfile
132
+ \param write_data ::fmat_t samples to write to sink
133
+ \param write number of frames to write
134
+
135
+ */
136
+ void aubio_sink_sndfile_do_multi(aubio_sink_sndfile_t * s, fmat_t * write_data, uint_t write);
137
+
138
+ /**
139
+
140
+ close sink
141
+
142
+ \param s sink_sndfile object, created with ::new_aubio_sink_sndfile
143
+
144
+ \return 0 on success, non-zero on failure
145
+
146
+ */
147
+ uint_t aubio_sink_sndfile_close(aubio_sink_sndfile_t * s);
148
+
149
+ /**
150
+
151
+ close sink and cleanup memory
152
+
153
+ \param s sink, created with ::new_aubio_sink_sndfile
154
+
155
+ */
156
+ void del_aubio_sink_sndfile(aubio_sink_sndfile_t * s);
157
+
158
+ #ifdef __cplusplus
159
+ }
160
+ #endif
161
+
162
+ #endif /* AUBIO_SINK_SNDFILE_H */