This android application (Native/C++) is created to demonstrate how we can use Google's Oboe to record audio and saving them into a local WAV file.
- Used Kotlin.
- Whole project is based on AndroidX.
- Used Oboe (A C++ library that makes it easy to build high-performance audio apps on Android).
- Used C library named libsndfile for reading and writing sound files containing sampled audio data.
- Writing to file must be done on a background thread.
- UI improvements, giving feedback to user while recording/playback etc etc.
- Current implementation replaces old recorded file, we need to just create new recording in to a new file each time user starts recording.
- Give user the control to save recordings to a new directory location.
This project has submodules, please before clone these:
git clone --recursive https://github.com/sheraz-nadeem/oboe_recorder_sample.git
Import to Android Studio or build it from command line likes this:
cd oboe_recorder_sample/oboe_recorder
./gradlew assembleDebug
Some times and when you have a previous version, you need clean the old build caches:
rm -rf app/.cxx/