openframeworks/openFrameworks — pull request #1625 by arturoc (2012-09-30 18:15:20+00:00)
Title: sound refactoring - don't merge yet

adds:

ofSoundBuffer a class to store sound buffers equivalent to ofPixels. might need a setFromExternalBuffer and be implemented with float array instead of vector so it can be used to pass the native buffer around without need for copies

ofSoundFile: allows to read from sound files to sound buffers, would be good to add writting too, probably should inherit from ofFile

ofBasicSoundPlayer: a sound player that can be used on any platform that supports ofSoundStream. it uses ofSoundFile to read sound files and outputs through any ofSoundStream

ofSoundMixer: a simple sound mixer

ofSoundUtils: a utility file for sound, like commonly used sound interpolations, panning algorithm...