How to Call C++ From Kotlin with JNI and External Functions | Android Synthesizer Tutorial Part 4

Описание к видео How to Call C++ From Kotlin with JNI and External Functions | Android Synthesizer Tutorial Part 4

👉 GET THE AUDIO PLUGIN DEVELOPER CHECKLIST: https://thewolfsound.com/checklist/
✅ Check out the full article on TheWolfSound.com: https://thewolfsound.com/android-synt...
✅ Source code of the synth app: https://github.com/JanWilczek/android...
✅ Sign up for WolfSound's newsletter: https://thewolfsound.com/newsletter/
✅ Please subscribe to WolfSound to let the little Wolf 🐺 grow:
https://www.youtube.com/c/WolfSoundAu...
🎧 Listen to my music: https://thewolfofficial.com/

Hi, my name is Jan Wilczek. I am an audio programmer and a researcher. Welcome to WolfSound!

WolfSound's mission is to provide high-quality, informative, and entertaining videos, articles, and courses on how to process sound by exploring mathematics, applying algorithms, and creating code in various programming languages. Topics include sound synthesis, digital signal processing, programming languages for audio (C, C++, Python, Rust), and audio effects. I am also sharing tips on how to learn fast and effectively. Make sure to visit https://www.thewolfsound.com/.

WolfSound enables everybody to learn about audio programming!

ABOUT THE VIDEO

In this part, we will implement the connection between the Kotlin code and the C++ code. For this, we will use the Java Native Interface and external functions of Kotlin.

Thanks to this tutorial, you will learn

💡 Why Do We Need to Call C++ Code For Audio Processing?
💡 How Can We Call C++ Code From Kotlin?
💡 How to structure your JNI code?
💡 How to set up your build files on Android to make the C++ code build?

In case of any doubt in understanding, please, refer to the article above or ask a question in the comments 🙂

Video edited by Vadzim Vezhnavets.
Background music composed and produced by Jan Wilczek.

ABOUT ME

My name is Jan Wilczek. I am an audio programmer, a researcher in the field of music technology, and a musician. Through articles and videos from WolfSound, you will easily understand the main concepts of sound processing using software. My full story:    • How I Got Started With Audio Programm...  

FOLLOW WOLFSOUND ONLINE

✅ Blog: https://www.thewolfsound.com/
✅ LinkedIn:   / jan-wilczek-audio-programmer  
✅ Twitter:   / wilczek_jan  
✅ Facebook:   / janwilczekwolfsound  
✅ Instagram:   / janwolfwilczek  
✅ Pinterest:   / jawitrle  

TIME CODES

00:00 Introduction
00:42 Used technologies
01:01 Why do we need to call C++ code for audio processing?
02:22 How to call C++ code from Kotlin?
02:44 What are external functions in Kotlin?
02:59 What is Java Native Interface (JNI)?
03:16 Concrete steps to call C++ code from Kotlin
04:08 NativeWavetableSynthesizer in Kotlin
18:18 Adding a C++ module to an Android project
20:44 JNI code in C++
31:19 WavetableSynthesizer C++ class
38:00 Useful logging macro in C++
39:55 CMakeLists.txt file modifications
40:36 build.gradle file modifications
42:42 Adjustments in MainActivity
44:21 Testing the synthesizer
46:02 Summary

#android #kotlin

Комментарии

Информация по комментариям в разработке