sfz and flac files

You name it!

sfz and flac files

Postby gjungman » Thu May 17, 2012 10:32 pm

Hi all. And thanks to the developers for great work, especially on the sfz engine.

I'm wondering if import of flac samples should work with the sfz engine. I know it's not
part of the sfz standard (at least not the 1.0 document), but it seems like an obvious
extension.

I am running an svn version from some time in March (svn2325 I think), which I
built on Fedora 15, and I'm using the Fantasia gui. Most things are working fine, but
I was hoping that flac import would be transparently implemented, and it didn't work.

What actually happened is that Fantasia reported everything was ok, and the backend
didn't seem to complain, but when the samples were actually triggered, they were
just white noise. So it seems like the files are loaded and just assumed to be wav,
or something?

It's possible that I have something miconfigured. Please let me know what the
intention is for flac samples.

Thanks again.
gjungman
Newbie
 
Posts: 2
Joined: Thu May 17, 2012 10:16 pm

Re: sfz and flac files

Postby varpa » Tue Jun 05, 2012 8:19 pm

According to the linuxsampler documentation only wav, ogg, and aiff are supported:
https://docs.google.com/document/pub?id ... 3d8948aa6d

You'd have to make a feature request to try to get flac support.
varpa
User
 
Posts: 66
Joined: Thu Dec 09, 2010 8:15 pm

Re: sfz and flac files

Postby gjungman » Wed Jun 06, 2012 12:45 am

varpa wrote:You'd have to make a feature request to try to get flac support.


Hi. Thanks for the reply. Yes, I was hoping to get the developer's attention.
Usually, programs that use libsndfile get import/export of many useful
formats for free, so it should not be too difficult.

Having a look in src/engines/common/SampleFile.cpp, the situation seems a
bit of a mess though. There are some compile-time checks for support and
endian-ness that confuse the issue. It looks like the support for wavs
(with sf_read_raw) was originally implemented and then the ogg support
(with sf_readf_short) was tacked on. I'm just guessing though. Perhaps
this little section of code could be cleaned up somewhat, and we could get
flac import along the way.

I would like to hear something from the developers before I try to make a
patch, since there are some issues about how to do this. For example, there
is some non-local interaction with Synthesize::GetSample for 24 bit samples,
which I do not understand. It's often hard to figure out what people intended,
just from reading their code.

--
G. Jungman
gjungman
Newbie
 
Posts: 2
Joined: Thu May 17, 2012 10:16 pm

Re: sfz and flac files

Postby varpa » Thu Jun 14, 2012 4:43 am

I suggest sending an email to the linuxsampler developer's list - see https://lists.sourceforge.net/lists/lis ... pler-devel. I don't think the developers look at this forum very much, but I've gotten good response from the email list.
varpa
User
 
Posts: 66
Joined: Thu Dec 09, 2010 8:15 pm


Return to General LinuxSampler Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron