Am 03.06.2013 00:35, schrieb Tim E. Real:
> 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?

They will work similarly. However, they're not derived of SndFile, so I
will (and currently am) replace most usages of SndFile(R) with AudioStreams.

This creates the problem of how to handle wave file editing, see my
other mail.



> Or are you saying AudioStreams has a private SndFile, but class SndFile is 
>  still accessible and usable as normal, by other code?

this is true. I will remove many usages of SndFile, but probably not
all. There are some "legitimate" cases.
But i must be absolutely sure that nothing ever sf_seeks on the
AudioStream's private SndFile, except if i want that. E.g., the
readPeakRms() function may not seek. That must be buffered somehow.

> Thus it's simply a matter of who (what) ever wants to use this new 
>  AudioStreams class instead of SndFile?

apart from the fact that everything *shall* use them, yea, basically
that's true.

Greetings
flo

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Lmuse-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmuse-developer

Reply via email to