There are two distinct frameworks for recording and playing audio. The choice on which to use depends on the application:

■ MediaPlayer/MediaRecorder—This is the standard method to manipulate audio, but must be file- or stream-based data. Creates its own thread for processing. SoundPool utilizes this framework.

■ AudioTrack/AudioRecorder—Provides direct access to raw audio. Useful to manipulate audio in memory, write to the buffer while already playing, or any other usage that does not require a file or stream. It does not create its own thread for processing.

These methods are shown in the following section in various recipes.

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook

Post a comment