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,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 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_WAVWRITE_H
|
|
22
|
+
#define AUBIO_SINK_WAVWRITE_H
|
|
23
|
+
|
|
24
|
+
/** \file
|
|
25
|
+
|
|
26
|
+
Write to file using native file writer.
|
|
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_wavwrite.c
|
|
34
|
+
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
#ifdef __cplusplus
|
|
38
|
+
extern "C" {
|
|
39
|
+
#endif
|
|
40
|
+
|
|
41
|
+
/** sink_wavwrite object */
|
|
42
|
+
typedef struct _aubio_sink_wavwrite_t aubio_sink_wavwrite_t;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
|
|
46
|
+
create new ::aubio_sink_wavwrite_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_wavwrite_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_wavwrite_t * new_aubio_sink_wavwrite(const char_t * uri, uint_t samplerate);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
|
|
64
|
+
preset sink samplerate
|
|
65
|
+
|
|
66
|
+
\param s sink, created with ::new_aubio_sink_wavwrite
|
|
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_wavwrite_preset_samplerate(aubio_sink_wavwrite_t *s, uint_t samplerate);
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
|
|
81
|
+
preset sink channels
|
|
82
|
+
|
|
83
|
+
\param s sink, created with ::new_aubio_sink_wavwrite
|
|
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_wavwrite_preset_channels(aubio_sink_wavwrite_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_wavwrite
|
|
101
|
+
\return samplerate, in Hz
|
|
102
|
+
|
|
103
|
+
*/
|
|
104
|
+
uint_t aubio_sink_wavwrite_get_samplerate(const aubio_sink_wavwrite_t *s);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
|
|
108
|
+
get channels of sink object
|
|
109
|
+
|
|
110
|
+
\param s sink object, created with ::new_aubio_sink_wavwrite
|
|
111
|
+
\return number of channels
|
|
112
|
+
|
|
113
|
+
*/
|
|
114
|
+
uint_t aubio_sink_wavwrite_get_channels(const aubio_sink_wavwrite_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_wavwrite
|
|
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_wavwrite_do(aubio_sink_wavwrite_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_wavwrite
|
|
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_wavwrite_do_multi(aubio_sink_wavwrite_t * s, fmat_t * write_data, uint_t write);
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
|
|
140
|
+
close sink
|
|
141
|
+
|
|
142
|
+
\param s sink_wavwrite object, create with ::new_aubio_sink_wavwrite
|
|
143
|
+
|
|
144
|
+
\return 0 on success, non-zero on failure
|
|
145
|
+
|
|
146
|
+
*/
|
|
147
|
+
uint_t aubio_sink_wavwrite_close(aubio_sink_wavwrite_t * s);
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
|
|
151
|
+
close sink and cleanup memory
|
|
152
|
+
|
|
153
|
+
\param s sink, created with ::new_aubio_sink_wavwrite
|
|
154
|
+
|
|
155
|
+
*/
|
|
156
|
+
void del_aubio_sink_wavwrite(aubio_sink_wavwrite_t * s);
|
|
157
|
+
|
|
158
|
+
#ifdef __cplusplus
|
|
159
|
+
}
|
|
160
|
+
#endif
|
|
161
|
+
|
|
162
|
+
#endif /* AUBIO_SINK_WAVWRITE_H */
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2012-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
|
+
#ifndef AUBIO_SOURCE_H
|
|
22
|
+
#define AUBIO_SOURCE_H
|
|
23
|
+
|
|
24
|
+
/** \file
|
|
25
|
+
|
|
26
|
+
Media source to read blocks of consecutive audio samples from file.
|
|
27
|
+
|
|
28
|
+
To write to file, use ::aubio_sink_t.
|
|
29
|
+
|
|
30
|
+
Depending on how aubio was compiled, the following sources will be available.
|
|
31
|
+
|
|
32
|
+
When creating a new source using ::new_aubio_source, the new function of each
|
|
33
|
+
of the compiled-in sources will be used, in the following order, until one of
|
|
34
|
+
them gets successfully created. If all sources returned NULL,
|
|
35
|
+
::new_aubio_source will return NULL.
|
|
36
|
+
|
|
37
|
+
\b \p source_avcodec : libav
|
|
38
|
+
|
|
39
|
+
aubio can be optionally compiled with [libav](http://libav.org), which can
|
|
40
|
+
read from a very large number of audio and video formats, including over
|
|
41
|
+
different network protocols such as HTTP.
|
|
42
|
+
|
|
43
|
+
\b \p source_apple_audio : ExtAudioFileRef
|
|
44
|
+
|
|
45
|
+
On Mac and iOS platforms, aubio should be compiled with CoreAudio [Extended
|
|
46
|
+
Audio File Services]
|
|
47
|
+
(https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/ExtendedAudioFileServicesReference/Reference/reference.html).
|
|
48
|
+
This provides access to most common audio file formats, including compressed
|
|
49
|
+
ones.
|
|
50
|
+
|
|
51
|
+
\b \p source_sndfile : libsndfile
|
|
52
|
+
|
|
53
|
+
Also optional, aubio can be built against
|
|
54
|
+
[libsndfile](http://www.mega-nerd.com/libsndfile/), which can read [most
|
|
55
|
+
uncompressed formats](http://www.mega-nerd.com/libsndfile/#Features).
|
|
56
|
+
|
|
57
|
+
\b \p source_wavread : native WAV reader
|
|
58
|
+
|
|
59
|
+
A simple source to read from 16-bits PCM RIFF encoded WAV files.
|
|
60
|
+
|
|
61
|
+
\example io/test-source.c
|
|
62
|
+
\example io/test-source_multi.c
|
|
63
|
+
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
#ifdef __cplusplus
|
|
67
|
+
extern "C" {
|
|
68
|
+
#endif
|
|
69
|
+
|
|
70
|
+
/** media source object */
|
|
71
|
+
typedef struct _aubio_source_t aubio_source_t;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
|
|
75
|
+
create new ::aubio_source_t
|
|
76
|
+
|
|
77
|
+
\param uri the file path or uri to read from
|
|
78
|
+
\param samplerate sampling rate to view the fie at
|
|
79
|
+
\param hop_size the size of the blocks to read from
|
|
80
|
+
|
|
81
|
+
Creates a new source object. If `0` is passed as `samplerate`, the sample
|
|
82
|
+
rate of the original file is used.
|
|
83
|
+
|
|
84
|
+
The samplerate of newly created source can be obtained using
|
|
85
|
+
::aubio_source_get_samplerate.
|
|
86
|
+
|
|
87
|
+
*/
|
|
88
|
+
aubio_source_t * new_aubio_source(const char_t * uri, uint_t samplerate, uint_t hop_size);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
|
|
92
|
+
read monophonic vector of length hop_size from source object
|
|
93
|
+
|
|
94
|
+
\param s source object, created with ::new_aubio_source
|
|
95
|
+
\param read_to ::fvec_t of data to read to
|
|
96
|
+
\param read upon returns, equals to number of frames actually read
|
|
97
|
+
|
|
98
|
+
Upon returns, `read` contains the number of frames actually read from the
|
|
99
|
+
source. `hop_size` if enough frames could be read, less otherwise.
|
|
100
|
+
|
|
101
|
+
*/
|
|
102
|
+
void aubio_source_do(aubio_source_t * s, fvec_t * read_to, uint_t * read);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
|
|
106
|
+
read polyphonic vector of length hop_size from source object
|
|
107
|
+
|
|
108
|
+
\param s source object, created with ::new_aubio_source
|
|
109
|
+
\param read_to ::fmat_t of data to read to
|
|
110
|
+
\param[out] read upon returns, equals to number of frames actually read
|
|
111
|
+
|
|
112
|
+
Upon returns, `read` contains the number of frames actually read from the
|
|
113
|
+
source. `hop_size` if enough frames could be read, less otherwise.
|
|
114
|
+
|
|
115
|
+
*/
|
|
116
|
+
void aubio_source_do_multi(aubio_source_t * s, fmat_t * read_to, uint_t * read);
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
|
|
120
|
+
get samplerate of source object
|
|
121
|
+
|
|
122
|
+
\param s source object, created with ::new_aubio_source
|
|
123
|
+
\return samplerate, in Hz
|
|
124
|
+
|
|
125
|
+
*/
|
|
126
|
+
uint_t aubio_source_get_samplerate(aubio_source_t * s);
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
|
|
130
|
+
get channels of source object
|
|
131
|
+
|
|
132
|
+
\param s source object, created with ::new_aubio_source
|
|
133
|
+
\return channels
|
|
134
|
+
|
|
135
|
+
*/
|
|
136
|
+
uint_t aubio_source_get_channels (aubio_source_t * s);
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
|
|
140
|
+
seek source object
|
|
141
|
+
|
|
142
|
+
\param s source object, created with ::new_aubio_source
|
|
143
|
+
\param pos position to seek to, in frames
|
|
144
|
+
|
|
145
|
+
\return 0 if sucessful, non-zero on failure
|
|
146
|
+
|
|
147
|
+
*/
|
|
148
|
+
uint_t aubio_source_seek (aubio_source_t * s, uint_t pos);
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
|
|
152
|
+
get the duration of source object, in frames
|
|
153
|
+
|
|
154
|
+
\param s source object, created with ::new_aubio_source
|
|
155
|
+
\return number of frames in file
|
|
156
|
+
|
|
157
|
+
*/
|
|
158
|
+
uint_t aubio_source_get_duration (aubio_source_t * s);
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
|
|
162
|
+
close source object
|
|
163
|
+
|
|
164
|
+
\param s source object, created with ::new_aubio_source
|
|
165
|
+
|
|
166
|
+
\return 0 if sucessful, non-zero on failure
|
|
167
|
+
|
|
168
|
+
*/
|
|
169
|
+
uint_t aubio_source_close (aubio_source_t *s);
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
|
|
173
|
+
close source and cleanup memory
|
|
174
|
+
|
|
175
|
+
\param s source object, created with ::new_aubio_source
|
|
176
|
+
|
|
177
|
+
*/
|
|
178
|
+
void del_aubio_source(aubio_source_t * s);
|
|
179
|
+
|
|
180
|
+
#ifdef __cplusplus
|
|
181
|
+
}
|
|
182
|
+
#endif
|
|
183
|
+
|
|
184
|
+
#endif /* AUBIO_SOURCE_H */
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2012-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
|
+
#ifndef AUBIO_SOURCE_APPLE_AUDIO_H
|
|
22
|
+
#define AUBIO_SOURCE_APPLE_AUDIO_H
|
|
23
|
+
|
|
24
|
+
/** \file
|
|
25
|
+
|
|
26
|
+
Read from file using CoreAudio Extended Audio File Services
|
|
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_source_t instead to
|
|
30
|
+
make your code portable.
|
|
31
|
+
|
|
32
|
+
To write to file, use ::aubio_sink_t.
|
|
33
|
+
|
|
34
|
+
\example io/test-source_apple_audio.c
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
#ifdef __cplusplus
|
|
39
|
+
extern "C" {
|
|
40
|
+
#endif
|
|
41
|
+
|
|
42
|
+
/** apple audio media source object */
|
|
43
|
+
typedef struct _aubio_source_apple_audio_t aubio_source_apple_audio_t;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
|
|
47
|
+
create new ::aubio_source_apple_audio_t
|
|
48
|
+
|
|
49
|
+
\param uri the file path or uri to read from
|
|
50
|
+
\param samplerate sampling rate to view the fie at
|
|
51
|
+
\param hop_size the size of the blocks to read from
|
|
52
|
+
|
|
53
|
+
Creates a new source object. If `0` is passed as `samplerate`, the sample
|
|
54
|
+
rate of the original file is used.
|
|
55
|
+
|
|
56
|
+
The samplerate of newly created source can be obtained using
|
|
57
|
+
::aubio_source_apple_audio_get_samplerate.
|
|
58
|
+
|
|
59
|
+
*/
|
|
60
|
+
aubio_source_apple_audio_t * new_aubio_source_apple_audio(const char_t * uri, uint_t samplerate, uint_t hop_size);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
|
|
64
|
+
read monophonic vector of length hop_size from source object
|
|
65
|
+
|
|
66
|
+
\param s source object, created with ::new_aubio_source_apple_audio
|
|
67
|
+
\param read_to ::fvec_t of data to read to
|
|
68
|
+
\param read upon returns, equals to number of frames actually read
|
|
69
|
+
|
|
70
|
+
Upon returns, `read` contains the number of frames actually read from the
|
|
71
|
+
source. `hop_size` if enough frames could be read, less otherwise.
|
|
72
|
+
|
|
73
|
+
*/
|
|
74
|
+
void aubio_source_apple_audio_do(aubio_source_apple_audio_t * s, fvec_t * read_to, uint_t * read);
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
|
|
78
|
+
read polyphonic vector of length hop_size from source object
|
|
79
|
+
|
|
80
|
+
\param s source object, created with ::new_aubio_source_apple_audio
|
|
81
|
+
\param read_to ::fmat_t of data to read to
|
|
82
|
+
\param read upon returns, equals to number of frames actually read
|
|
83
|
+
|
|
84
|
+
Upon returns, `read` contains the number of frames actually read from the
|
|
85
|
+
source. `hop_size` if enough frames could be read, less otherwise.
|
|
86
|
+
|
|
87
|
+
*/
|
|
88
|
+
void aubio_source_apple_audio_do_multi(aubio_source_apple_audio_t * s, fmat_t * read_to, uint_t * read);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
|
|
92
|
+
get samplerate of source object
|
|
93
|
+
|
|
94
|
+
\param s source object, created with ::new_aubio_source_apple_audio
|
|
95
|
+
\return samplerate, in Hz
|
|
96
|
+
|
|
97
|
+
*/
|
|
98
|
+
uint_t aubio_source_apple_audio_get_samplerate(const aubio_source_apple_audio_t * s);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
|
|
102
|
+
get channels of source object
|
|
103
|
+
|
|
104
|
+
\param s source object, created with ::new_aubio_source_apple_audio
|
|
105
|
+
\return number of channels
|
|
106
|
+
|
|
107
|
+
*/
|
|
108
|
+
uint_t aubio_source_apple_audio_get_channels(const aubio_source_apple_audio_t * s);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
|
|
112
|
+
get the duration of source object, in frames
|
|
113
|
+
|
|
114
|
+
\param s source object, created with ::new_aubio_source_apple_audio
|
|
115
|
+
\return number of frames in file
|
|
116
|
+
|
|
117
|
+
*/
|
|
118
|
+
uint_t aubio_source_apple_audio_get_duration(const aubio_source_apple_audio_t * s);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
|
|
122
|
+
seek source object
|
|
123
|
+
|
|
124
|
+
\param s source object, created with ::new_aubio_source
|
|
125
|
+
\param pos position to seek to, in frames
|
|
126
|
+
|
|
127
|
+
\return 0 if sucessful, non-zero on failure
|
|
128
|
+
|
|
129
|
+
*/
|
|
130
|
+
uint_t aubio_source_apple_audio_seek (aubio_source_apple_audio_t * s, uint_t pos);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
|
|
134
|
+
close source
|
|
135
|
+
|
|
136
|
+
\param s source object, created with ::new_aubio_source_apple_audio
|
|
137
|
+
|
|
138
|
+
\return 0 if sucessful, non-zero on failure
|
|
139
|
+
|
|
140
|
+
*/
|
|
141
|
+
uint_t aubio_source_apple_audio_close(aubio_source_apple_audio_t * s);
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
|
|
145
|
+
close source and cleanup memory
|
|
146
|
+
|
|
147
|
+
\param s source object, created with ::new_aubio_source_apple_audio
|
|
148
|
+
|
|
149
|
+
*/
|
|
150
|
+
void del_aubio_source_apple_audio(aubio_source_apple_audio_t * s);
|
|
151
|
+
|
|
152
|
+
#ifdef __cplusplus
|
|
153
|
+
}
|
|
154
|
+
#endif
|
|
155
|
+
|
|
156
|
+
#endif /* AUBIO_SOURCE_APPLE_AUDIO_H */
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 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
|
+
#ifndef AUBIO_SOURCE_AVCODEC_H
|
|
22
|
+
#define AUBIO_SOURCE_AVCODEC_H
|
|
23
|
+
|
|
24
|
+
/** \file
|
|
25
|
+
|
|
26
|
+
Read from file using [libavcodec](http://libav.org/)
|
|
27
|
+
|
|
28
|
+
Avoid including this file directly! Prefer using ::aubio_source_t instead to
|
|
29
|
+
make your code portable.
|
|
30
|
+
|
|
31
|
+
To write to file, use ::aubio_sink_t.
|
|
32
|
+
|
|
33
|
+
\example io/test-source_avcodec.c
|
|
34
|
+
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
#ifdef __cplusplus
|
|
38
|
+
extern "C" {
|
|
39
|
+
#endif
|
|
40
|
+
|
|
41
|
+
/** avcodec media source object */
|
|
42
|
+
typedef struct _aubio_source_avcodec_t aubio_source_avcodec_t;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
|
|
46
|
+
create new ::aubio_source_avcodec_t
|
|
47
|
+
|
|
48
|
+
\param uri the file path or uri to read from
|
|
49
|
+
\param samplerate sampling rate to view the fie at
|
|
50
|
+
\param hop_size the size of the blocks to read from
|
|
51
|
+
|
|
52
|
+
Creates a new source object. If `0` is passed as `samplerate`, the sample
|
|
53
|
+
rate of the original file is used.
|
|
54
|
+
|
|
55
|
+
The samplerate of newly created source can be obtained using
|
|
56
|
+
::aubio_source_avcodec_get_samplerate.
|
|
57
|
+
|
|
58
|
+
*/
|
|
59
|
+
aubio_source_avcodec_t * new_aubio_source_avcodec(const char_t * uri, uint_t samplerate, uint_t hop_size);
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
|
|
63
|
+
read monophonic vector of length hop_size from source object
|
|
64
|
+
|
|
65
|
+
\param s source object, created with ::new_aubio_source_avcodec
|
|
66
|
+
\param read_to ::fvec_t of data to read to
|
|
67
|
+
\param[out] read upon returns, equals to number of frames actually read
|
|
68
|
+
|
|
69
|
+
Upon returns, `read` contains the number of frames actually read from the
|
|
70
|
+
source. `hop_size` if enough frames could be read, less otherwise.
|
|
71
|
+
|
|
72
|
+
*/
|
|
73
|
+
void aubio_source_avcodec_do(aubio_source_avcodec_t * s, fvec_t * read_to, uint_t * read);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
|
|
77
|
+
read polyphonic vector of length hop_size from source object
|
|
78
|
+
|
|
79
|
+
\param s source object, created with ::new_aubio_source_avcodec
|
|
80
|
+
\param read_to ::fmat_t of data to read to
|
|
81
|
+
\param read upon returns, equals to number of frames actually read
|
|
82
|
+
|
|
83
|
+
Upon returns, `read` contains the number of frames actually read from the
|
|
84
|
+
source. `hop_size` if enough frames could be read, less otherwise.
|
|
85
|
+
|
|
86
|
+
*/
|
|
87
|
+
void aubio_source_avcodec_do_multi(aubio_source_avcodec_t * s, fmat_t * read_to, uint_t * read);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
|
|
91
|
+
get samplerate of source object
|
|
92
|
+
|
|
93
|
+
\param s source object, created with ::new_aubio_source_avcodec
|
|
94
|
+
\return samplerate, in Hz
|
|
95
|
+
|
|
96
|
+
*/
|
|
97
|
+
uint_t aubio_source_avcodec_get_samplerate(const aubio_source_avcodec_t * s);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
|
|
101
|
+
get number of channels of source object
|
|
102
|
+
|
|
103
|
+
\param s source object, created with ::new_aubio_source_avcodec
|
|
104
|
+
\return number of channels
|
|
105
|
+
|
|
106
|
+
*/
|
|
107
|
+
uint_t aubio_source_avcodec_get_channels (const aubio_source_avcodec_t * s);
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
|
|
111
|
+
seek source object
|
|
112
|
+
|
|
113
|
+
\param s source object, created with ::new_aubio_source_avcodec
|
|
114
|
+
\param pos position to seek to, in frames
|
|
115
|
+
|
|
116
|
+
\return 0 if sucessful, non-zero on failure
|
|
117
|
+
|
|
118
|
+
*/
|
|
119
|
+
uint_t aubio_source_avcodec_seek (aubio_source_avcodec_t *s, uint_t pos);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
|
|
123
|
+
get the duration of source object, in frames
|
|
124
|
+
|
|
125
|
+
\param s source object, created with ::new_aubio_source_avcodec
|
|
126
|
+
\return number of frames in file
|
|
127
|
+
|
|
128
|
+
*/
|
|
129
|
+
uint_t aubio_source_avcodec_get_duration (aubio_source_avcodec_t * s);
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
|
|
133
|
+
close source
|
|
134
|
+
|
|
135
|
+
\param s source object, created with ::new_aubio_source_avcodec
|
|
136
|
+
|
|
137
|
+
\return 0 if sucessful, non-zero on failure
|
|
138
|
+
|
|
139
|
+
*/
|
|
140
|
+
uint_t aubio_source_avcodec_close (aubio_source_avcodec_t *s);
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
|
|
144
|
+
close source and cleanup memory
|
|
145
|
+
|
|
146
|
+
\param s source object, created with ::new_aubio_source_avcodec
|
|
147
|
+
|
|
148
|
+
*/
|
|
149
|
+
void del_aubio_source_avcodec(aubio_source_avcodec_t * s);
|
|
150
|
+
|
|
151
|
+
#ifdef __cplusplus
|
|
152
|
+
}
|
|
153
|
+
#endif
|
|
154
|
+
|
|
155
|
+
#endif /* AUBIO_SOURCE_AVCODEC_H */
|