Questions tagged [oboe]

Oboe is a C++ library for creating real-time audio apps on Android.

Oboe is a C++ library for creating real-time audio apps on Android. It uses AAudio on Android API 27 and above, falling back to OpenSL ES on older devices.

The purpose of Oboe is to provide a simple, easy to use API for developers to build low latency, real-time audio apps on Android. It's open source and maintained by Google engineers.

This tag should be used for all questions relating to Oboe, although please check the FAQ before posting.

84 questions
0
votes
0 answers

Is it important to hold the sound at all in the buffer before using resembler

when Using Resample to convert sample rate 22050 to 44100 the result is the same with out resampling it is important to have a buffer that hold all the sound at once ? In fact I decode the sound file chunk by chunk using decoder then pass each chunk…
0
votes
0 answers

AudioRecord doesn't record when using oboe LiveEffectEngine

My code is using AudioRecord to record audio. Now I added oboe LiveEffectEngine for their live effect and the AudioRecord doesn't really record (with no exception). My Galaxy S7(android 8.0.0) is using oboe opensles. Is there any fix so the…
Maor Cohen
  • 936
  • 2
  • 18
  • 33
0
votes
0 answers

Alternative of OpenSLES for VNDK Android for native application

my application using OpenSLES android backend for sound output. And image compiled with BOARD_VNDK_VERSION := current Which enable VNDK support. According alternative I also can use oboe audio library output, but seems it also use libOpenSLES or…
DEgITx
  • 960
  • 1
  • 13
  • 24
0
votes
1 answer

Android oboe glitch/noise/distortion

I'm trying to use oboe in my audio/video communication app, and I'm trying the onAudioReady round-trip callback as in the oboe guide: https://github.com/google/oboe/blob/main/docs/FullGuide.md Now I'm frustrating: If the read directly write into…
Amos
  • 2,222
  • 1
  • 26
  • 42
0
votes
1 answer

Build and use Oboe Resampler in Android

I'm trying to integrate Oboe Resampler in my android application. https://github.com/google/oboe/tree/master/src/flowgraph/resampler The idea is to convert ByteBuffer of audio that comes with 32000 sample rate in audio with 44100 sample rate. How I…
Blagojco
  • 326
  • 1
  • 2
  • 9
0
votes
2 answers

Field gets overwritten when opening audiostream in OBOE

I am using OBOE to build an sound app. I have in my AudioEngine.cpp defined couple of fields (audiosample - float, starting position field - int field, sample lengths field - int field etc.) However one of the fields (sample lengts - int field) gets…
webaloman
  • 221
  • 1
  • 4
  • 14
0
votes
1 answer

C++, Android NDK: How to save my raw audio data to file properly and load it again

I'm working on an Android app that plays back audio. To minimize latency I'm using C++ via JNI to play the app using the C++ library oboe. Currently, before playback, the app has to decode the given file (e.g. an mp3), and then plays back the…
michpohl
  • 852
  • 8
  • 30
0
votes
1 answer

Main UI Thread is blocked once oboe recording is started

I have coded a basic application that starts recording with oboe library. In MainActivity there are 2 buttons that call 2 JNI functions that are : recordAudio() stopRecording() In native-lib.cpp, these 2 JNI functions are defined as follows…
KotlinIsland
  • 799
  • 1
  • 6
  • 25
0
votes
2 answers

How would to make this class as a singleton?

I'm trying to make this class as a singleton but without success. How would you do that ? I have seen out there on internet that I should make modifications to the header file and to the cpp file. I've tried only by changing the cpp file... What I…
0
votes
3 answers

onAudioReady callback method for Oboe is never called

I'm using Oboe library for a music android app developing in Qt. In my sound processing class which dervives from AudioStreamCallback I use the builder to create both a recording and playback stream and this works fine and I received AAUDIO_OK as a…
0
votes
1 answer

How to change audio pitch?

I'm using the Oboe C++ library for playing sounds in my android application. I want to change the pitch of my audio samples. So, I started creating "mPos" float value to hold the current played frame and adding the "mPitch" value every step. It…
Matan
  • 296
  • 5
  • 24
0
votes
1 answer

Processing RAW audio data from Android

I’m struggling since days trying to obtain a raw audio stream from the microphone. I am trying different ways: the low-level JNI way with Oboe Library (either AAudio and OpenSL ES implementations) and the Android’s AudioRecord Java classes. The…
SirSeymour
  • 35
  • 1
  • 8
0
votes
0 answers

Sound crash when playing with Oboe

All my code works fine. I can load and play all my sound. I load 200 sound with a player array for play one of them all or more at same time. But I have a last problem. Now when I play a sound, the quality is very bad sometimes or if I spam it, it…
0
votes
1 answer

Play sound with Oboe with .obb file

Hello sorry I'm begginer. I don't have my sound files in my assets folder but in my .obb I'm using the RythmGame sample who is using only assets folder. I'm trying to use DataSound but only AAssetDataSource is used in my sample for create a…
0
votes
1 answer

What could possibly change sound output

I'm working on an Android app dealing with a device to which I need to send some signal (like a specific square wave, hardcoded in the device's firmware). Everything worked fine with Superpowered Audio, but now that I'm migrating to Oboe, these…
loics2
  • 616
  • 1
  • 10
  • 24