On 2013-01-13 14:42, Christian Schoenebeck wrote:
> On Sunday 13 January 2013 09:40:31 you wrote:
>> flac most definitely does _not_ work. I asked about this in
>> June. You might hope it would work through libsndfile, but it
>> fails because of the way the sound files are loaded and used;
>> the relevant source file is src/engines/common/SampleFile.cpp
> 
> Yes, you are right. With the current code it does not work. And you are also 
> right, that the code should be flipped there to actually use sf_readf_*() by 
> default instead of sf_read_raw(). And that code part should be cleaned a bit.
> 
> My spare time is currently very limited, and I have other priorities on my 
> TODO list regarding the sampler on top right now. But I try to handle this 
> issue after I hunted down the other issues, in case no other developer did in 
> the meantime. But no guarantee on when that will be exactly. ;-)

I've implemented the flac support now. I thought it was easier to keep
the the streaming buffer 24 bit instead of using floats. That also keeps
memory usage down. The alternative, to use floats in the buffer, would
make the code cleaner and maybe more CPU efficient. Feel free to change
it if you want.

/Andreas


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to