From: Tim E. R. <ter...@ro...> - 2013-06-02 22:36:07
|
On June 1, 2013 07:13:25 PM Florian Jung wrote: > This creates a problem for me: I rely on the fact that SndFile is only > seek()ed by me, not by anything outside my scope. (AudioStreams have a > *private* SndFile, nobody has access to this file). In case you're not using an IDE to Find Uses (ha!): I found two more sf_seek() in wave.cpp: SndFile::seek() and SndFile::samples(). But you probably know them. I found many SndFile/SndFileR::seek() and ::samples() uses. It's hard to list them. I must type quite a lot. SndFile::samples() is weird. And it uses the sf handle. I don't know if there's a better way in write mode. But I'll assume that stretch processing does not apply at all in write mode. Beware the Wave Editor functions use SndFiles too, and SimpleDrums synth and so on. So in light of all that, will AudioStreams somehow be transparent and act like normal SndFile so all these other usages just work? Or are you saying AudioStreams has a private SndFile, but class SndFile is still accessible and usable as normal, by other code? Thus it's simply a matter of who (what) ever wants to use this new AudioStreams class instead of SndFile? Thanks. Tim. |