rev: e04689aa7695db930a0f6785abdf6b8b97244942 rubberband-android-simple-sample/README -rw-r--r-- 1.2 KiB View raw Log this file
e04689aa7695 — Chris Cannam Remove usage of hg subdir; instead add a note in the README 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Rubber Band Android Simple Sample
=================================

This is a very trivial example Android application that uses the
Rubber Band Library.

This project serves as an example of how to link to, and call to, the
Rubber Band Library from Java code in an Android application.

It is *not* an example of how to write an Android application! The
Android-specific Java code here is absolutely not something that you
should refer to in your own work. This is simply an illustration of
the use of the JNI (Android NDK) interface.

To build, first make sure the Rubber Band Library code is checked out
at the subdirectory jni/rubberband:

   $ hg clone https://hg.sr.ht/~breakfastquay/rubberband jni/rubberband

Then run:

   $ ndk-build
   $ ant debug
   $ ant debug install

The application simply pops up an ugly window with Play and Stop
buttons and plays a canned audio file, slowed down. The file itself is
loaded (in a raw format) from an app resource. Loading audio files and
managing the UI is outside the scope of this library.

The example code is public domain; the Rubber Band Library licence is
documented separately (see http://www.breakfastquay.com/rubberband/).