openframeworks/openFrameworks — Issue #856: allow access to individual sound samples
Author: kylemcdonald
Created: 2011-12-30 02:33:19+00:00
State: open

ofPixels has getPixels(), but OF has no equivalent getSamples() for sound.

right now the best solution seems to be using libsndfile with OF http://forum.openframeworks.cc/index.php/topic,3502.0.html

but i would love to see the audio architecture for OF mirror the visual architecture better. this means ofSoundPlayer acts like ofVideoPlayer, and we need to add an ofSound object that mirrors ofPixels. ofSound should always store samples in memory, while ofSoundPlayer can stream audio from disk like ofVideoPlayer.