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.
- package/android/libs/sdk-bluetooth-release.aar +0 -0
- package/ios/GizwitsiOSSDK.framework/GizwitsiOSSDK +0 -0
- package/ios/GizwitsiOSSDK.framework/Headers/CocoaAsyncSocket.h +18 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDASLLogger.h +41 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDAbstractDatabaseLogger.h +102 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDContextFilterLogFormatter.h +63 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDDispatchQueueLogFormatter.h +128 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDFileLogger.h +340 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDLog+LOGV.h +99 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDLog.h +632 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDMultiFormatter.h +30 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDTTYLogger.h +171 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPAES.h +19 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPDataCode.h +44 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPDatumCode.h +38 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPGuideCode.h +15 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTools.h +22 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouch.h +36 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchDelegate.h +24 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchGenerator.h +46 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchResult.h +36 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTask.h +124 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTaskParameter.h +173 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketClient.h +50 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketServer.h +49 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_ByteUtil.h +128 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_CRC8.h +61 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_NetUtil.h +82 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_WifiUtil.h +33 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ForegroundReconnection.h +23 -0
- package/ios/GizwitsiOSSDK.framework/Headers/GCDTimer.h +19 -0
- package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK-Swift.h +338 -0
- package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK.h +24 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTClient.h +39 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTInMemoryPersistence.h +16 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyDecoder.h +19 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyEncoder.h +18 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionLegacy.h +112 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionSynchron.h +194 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTStrict.h +33 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTUntil.h +14 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ReconnectTimer.h +21 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncSocket.h +1226 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncUdpSocket.h +1036 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_GizwitsParser.h +61 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketDecoder.h +39 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketEncoder.h +38 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketTransport.h +79 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCoreDataPersistence.h +21 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTDecoder.h +66 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTLog.h +123 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTMessage.h +233 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTPersistence.h +124 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTProperties.h +76 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicy.h +158 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicyTransport.h +30 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSession.h +886 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSessionManager.h +237 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTTransport.h +114 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_SSZipArchive.h +178 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_SSZipCommon.h +71 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_ZipArchive.h +26 -0
- package/ios/GizwitsiOSSDK.framework/Headers/a_weighting.h +88 -0
- package/ios/GizwitsiOSSDK.framework/Headers/aubio.h +231 -0
- package/ios/GizwitsiOSSDK.framework/Headers/audio_unit.h +61 -0
- package/ios/GizwitsiOSSDK.framework/Headers/awhitening.h +125 -0
- package/ios/GizwitsiOSSDK.framework/Headers/beattracking.h +121 -0
- package/ios/GizwitsiOSSDK.framework/Headers/biquad.h +75 -0
- package/ios/GizwitsiOSSDK.framework/Headers/c_weighting.h +88 -0
- package/ios/GizwitsiOSSDK.framework/Headers/common.h +104 -0
- package/ios/GizwitsiOSSDK.framework/Headers/cvec.h +247 -0
- package/ios/GizwitsiOSSDK.framework/Headers/dct.h +85 -0
- package/ios/GizwitsiOSSDK.framework/Headers/fft.h +144 -0
- package/ios/GizwitsiOSSDK.framework/Headers/filter.h +176 -0
- package/ios/GizwitsiOSSDK.framework/Headers/filterbank.h +90 -0
- package/ios/GizwitsiOSSDK.framework/Headers/filterbank_mel.h +72 -0
- package/ios/GizwitsiOSSDK.framework/Headers/fmat.h +172 -0
- package/ios/GizwitsiOSSDK.framework/Headers/fvec.h +178 -0
- package/ios/GizwitsiOSSDK.framework/Headers/hist.h +63 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ioutils.h +60 -0
- package/ios/GizwitsiOSSDK.framework/Headers/log.h +99 -0
- package/ios/GizwitsiOSSDK.framework/Headers/lvec.h +118 -0
- package/ios/GizwitsiOSSDK.framework/Headers/mathutils.h +330 -0
- package/ios/GizwitsiOSSDK.framework/Headers/mfcc.h +79 -0
- package/ios/GizwitsiOSSDK.framework/Headers/musicutils.h +171 -0
- package/ios/GizwitsiOSSDK.framework/Headers/notes.h +113 -0
- package/ios/GizwitsiOSSDK.framework/Headers/onset.h +347 -0
- package/ios/GizwitsiOSSDK.framework/Headers/parameter.h +159 -0
- package/ios/GizwitsiOSSDK.framework/Headers/peakpicker.h +57 -0
- package/ios/GizwitsiOSSDK.framework/Headers/phasevoc.h +112 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitch.h +197 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchfcomb.h +76 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchmcomb.h +77 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchschmitt.h +75 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchspecacf.h +103 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyin.h +100 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfast.h +102 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfft.h +99 -0
- package/ios/GizwitsiOSSDK.framework/Headers/resampler.h +65 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sampler.h +140 -0
- package/ios/GizwitsiOSSDK.framework/Headers/scale.h +80 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sink.h +181 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sink_apple_audio.h +163 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sink_sndfile.h +162 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sink_wavwrite.h +162 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source.h +184 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source_apple_audio.h +156 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source_avcodec.h +155 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source_sndfile.h +155 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source_wavread.h +160 -0
- package/ios/GizwitsiOSSDK.framework/Headers/specdesc.h +204 -0
- package/ios/GizwitsiOSSDK.framework/Headers/tempo.h +255 -0
- package/ios/GizwitsiOSSDK.framework/Headers/tss.h +103 -0
- package/ios/GizwitsiOSSDK.framework/Headers/types.h +70 -0
- package/ios/GizwitsiOSSDK.framework/Headers/vecutils.h +116 -0
- package/ios/GizwitsiOSSDK.framework/Headers/wavetable.h +178 -0
- package/ios/GizwitsiOSSDK.framework/Info.plist +0 -0
- package/ios/GizwitsiOSSDK.framework/LICENSE +17 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.abi.json +57489 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +1752 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftinterface +1752 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/module.modulemap +11 -0
- package/ios/GizwitsiOSSDK.framework/PrivacyInfo.xcprivacy +23 -0
- package/ios/GizwitsiOSSDK.framework/README.md +31 -0
- package/package.json +1 -1
- 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 */
|