|
From: Graham G. <ggo...@gm...> - 2013-01-11 06:57:50
|
Hi, I'd like to know if the flac file format is supported in the SFZ sampler engine of linuxsampler? Kind regards, GrahamG |
|
From: Christian S. <sch...@li...> - 2013-01-11 16:25:56
|
On Friday 11 January 2013 07:57:43 Graham Goode wrote: > I'd like to know if the flac file format is supported in the SFZ > sampler engine of linuxsampler? Since the SFZ engine in LinuxSampler is utilizing libsndfile to handle audio formats, and since recent versions of libsndfile support this format, FLAC files should work yes, however I have never tested it with such audio file types yet. So ATM I cannot say for sure whether there are possible issues with this audio file format. You tested it with FLAC files, and you encountered a problem? CU Christian |
|
From: Graham G. <ggo...@gm...> - 2013-01-11 21:18:12
|
Hi, Yes, I have an sfz instrument (from the free samples that come with the Aria downloads) that loads and plays fine after I convert the flac files to wav (and adjust the sfz file accordingly) BUT loads and does NOT play when left as flac... Kind regards, GrahamG On 1/11/13, Christian Schoenebeck <sch...@li...> wrote: > On Friday 11 January 2013 07:57:43 Graham Goode wrote: >> I'd like to know if the flac file format is supported in the SFZ >> sampler engine of linuxsampler? > > Since the SFZ engine in LinuxSampler is utilizing libsndfile to handle audio > > formats, and since recent versions of libsndfile support this format, FLAC > files should work yes, however I have never tested it with such audio file > types yet. So ATM I cannot say for sure whether there are possible issues > with > this audio file format. > > You tested it with FLAC files, and you encountered a problem? > > CU > Christian > |
|
From: Gerard J. <ju...@cy...> - 2013-01-13 08:55:51
|
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 Here is the link to that thread: http://sourceforge.net/mailarchive/message.php?msg_id=29408426 The response was somewhat helpful, but not enough to motivate doing something about it. That little section of code is probably more confusing than it should be. -- G. Jungman |
|
From: Christian S. <sch...@li...> - 2013-01-13 13:37:32
|
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. ;-) CU Christian |
|
From: Andreas P. <and...@br...> - 2013-01-13 17:49:59
|
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 |
|
From: Graham G. <ggo...@gm...> - 2013-01-14 07:04:49
|
On 1/13/13, Andreas Persson <and...@br...> wrote: > 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 Thanks Andreas, I'll get a chance to test this again later in the week. Kind regards, GrahamG |