Recording and playback audio from buffers

Hi,

I tried to find a class or extension, which makes recording and playback of audio easier.
There was this thread here:
http://forum.openframeworks.cc/t/managing-buffersrecording-audio/3240/0

I started making a class out of the ideas from this, but got into trouble when using more instances the same time and multi-sample-playback.

Is there already somthing(classes/libs) I could use?
I’m thankful for ideas.

Best,
K.

by now, I found this for sample playback, only:

http://forum.openframeworks.cc/t/example-of-playing-back-a-sample-in-ofsoundstream/3502/0

Would be nice if someone could have a look if this makes sense, what I’m doing here…
I tried to put record and playback into an audiobuffer into a class…don’t know if this is the right way?

http://dl.dropbox.com/u/12593494/Rec-Play-class.zip

I want to implement granularsynthesis on this as a next step.

I’m grateful for suggestions…

Best,
K.

by now, I found this for sample playback, only:

http://forum.openframeworks.cc/t/example-of-playing-back-a-sample-in-ofsoundstream/3502/0

I don’t think its very simple, I think its quit hard for new person