1.2. SMARTPHONE IMPLEMENTATION SHELLS 3
iPhone Android
Main.Storyboard
ViewController
IosAudioController
FIRFilter FIRFilter
Processing
WaveRecorder
Preferences UI
GUI
WaveSaver
WaveReader
Algorithm
Implemented in C
UI and I/O
in Java
Audio I/O
Handler
User
Interface
Figure 1.1: Components of the developed shell programs to run C codes on iPhone and Android
smartphones.
user is given the option to select one of the two modules WaveRecorder and WaveReader. In both
cases, the module WaveRecorder is used for outputs.
Processing is module allows running C codes within the Android shell. Additional code
segments are written to interface with the Java modules using the Java Native Interface ( JNI)
programming framework.
1.2.2 IPHONE IMPLEMENTATION
e iPhone shell also consists of three major parts that match the Android shell.
User Interface (UI) e UI module handles displaying program outputs and all interactions
with the user. It provides an interface for the user to change the parameters required by the
processing algorithm. e component Main.Storyboard contains the UI elements and the com-
ponent ViewController handles all UI events such as user interaction or parameter changes.
I/O Handler is module gathers data to be processed by the processing algorithm depending
on the source specified by the user. e component IosAudioController described in [11] is used
to gather data from the microphone and provide data to a C code for processing. is component
is also responsible for outputting processed audio signals to the speaker. When using an audio
file, the component audioReader handles reading stored audio files and passing them to C codes
for processing.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.196.234