You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker 7ee447c011
v811_spc009_project
4 months ago
..
src/main v811_spc009_project 4 months ago
README.md v811_spc009_project 4 months ago
build.gradle v811_spc009_project 4 months ago

README.md

iolib

Classes for playing audio data.

Abstract

(Oboe) iolib contains classes implementing streaming audio playback and mixing from multiple sources. It's purpose is to demonstrate best practices and provide reusable code.

Note: the more general name of "iolib" was chosen since it is presumed that this project will eventually implement audio capture capability.

iolib is written in C++ and is intended to be called from Android native code. It is implemented as a static library.

iolib project structure

  • player Contains classes to support streaming playback from (potentially) multiple audio sources.

player classes

DataSource

Declares the basic interface for audio data sources.

SampleSource

Extends the DataSource interface for audio data coming from SampleBuffer objects.

OneShotSampleSource

Extends SampleSource to provide data that plays through it's SampleBuffer and then provides silence, (i.e. a non-looping sample)

SampleBuffer

Loads and holds (in memory) audio sample data and provides read-only access to that data.

SimpleMultiPlayer

Implements an Oboe audio stream into which it mixes audio from some number of SampleSources.

This class demonstrates:

  • Creation and lifetime management of an Oboe audio stream (ManagedStream)
  • Logic for an Oboe AudioStreamCallback interface.
  • Logic for handling streaming restart on error (i.e. playback device changes)