Lines Matching refs:oboe

12 … via [Google Maven](https://maven.google.com/web/index.html) (search for "oboe"). [Prefab support …
14 Add the oboe dependency to your app's `build.gradle` file. Replace "1.4.3" with the [latest stable …
17 implementation 'com.google.oboe:oboe:1.4.3'
28 Include and link to oboe by updating your `CMakeLists.txt`:
30 find_package (oboe REQUIRED CONFIG)
31 target_link_libraries(app oboe::oboe) # You may have other libraries here such as `log`.
41 find_package (oboe REQUIRED CONFIG)
44 target_link_libraries(app log oboe::oboe)
61 Start by cloning the [latest stable release](https://github.com/google/oboe/releases/) of the Oboe …
63 git clone -b 1.4-stable https://github.com/google/oboe
65 **Make a note of the path which you cloned oboe into - you will need it shortly**
71 git submodule add https://github.com/google/oboe
88 # compile oboe source files using oboe's CMake file.
89 # ./oboe specifies where the compiled binaries will be stored
90 add_subdirectory (${OBOE_DIR} ./oboe)
99 Add `oboe` to the list of libraries which your app's library depends on. For example:
101 target_link_libraries(native-lib oboe)
111 set (OBOE_DIR ./oboe)
112 add_subdirectory (${OBOE_DIR} ./oboe)
118 target_link_libraries (native-lib log oboe)
131 #include <oboe/Oboe.h>
135 oboe::AudioStreamBuilder builder;
139 builder.setDirection(oboe::Direction::Output);
140 builder.setPerformanceMode(oboe::PerformanceMode::LowLatency);
141 builder.setSharingMode(oboe::SharingMode::Exclusive);
142 builder.setFormat(oboe::AudioFormat::Float);
143 builder.setChannelCount(oboe::ChannelCount::Mono);
148 oboe::AudioStreamBuilder builder;
149 builder.setPerformanceMode(oboe::PerformanceMode::LowLatency)
150 ->setSharingMode(oboe::SharingMode::Exclusive)
152 ->setFormat(oboe::AudioFormat::Float);
157 class MyCallback : public oboe::AudioStreamDataCallback {
159 oboe::DataCallbackResult
160 onAudioReady(oboe::AudioStream *audioStream, void *audioData, int32_t numFrames) {
173 return oboe::DataCallbackResult::Continue;
189 std::shared_ptr<oboe::AudioStream> mStream;
193 oboe::Result result = builder.openStream(mStream);
195 …nvenience method for converting its types into human-readable strings called `oboe::convertToText`:
197 if (result != oboe::Result::OK) {
198 LOGE("Failed to create stream. Error: %s", oboe::convertToText(result));
207 oboe::AudioFormat format = mStream->getFormat();
208 LOGI("AudioStream format is %s", oboe::convertToText(format));
248 #include <oboe/Oboe.h>
251 class OboeSinePlayer: public oboe::AudioStreamDataCallback {
259 oboe::AudioStreamBuilder builder;
261 Result result = builder.setSharingMode(oboe::SharingMode::Exclusive)
262 ->setPerformanceMode(oboe::PerformanceMode::LowLatency)
265 ->setSampleRateConversionQuality(oboe::SampleRateConversionQuality::Medium);
266 ->setFormat(oboe::AudioFormat::Float)
287oboe::DataCallbackResult onAudioReady(oboe::AudioStream *oboeStream, void *audioData, int32_t numF…
297 return oboe::DataCallbackResult::Continue;
302 std::shared_ptr<oboe::AudioStream> mStream;
322 For more examples on how to use Oboe look in the [samples](https://github.com/google/oboe/tree/mast…
351 oboe::DefaultStreamValues::SampleRate = (int32_t) sampleRate;
352 oboe::DefaultStreamValues::FramesPerBurst = (int32_t) framesPerBurst;
358 - [Code samples](https://github.com/google/oboe/tree/master/samples)