[linux-audio-dev] Converting a 24bit sample to 16bit

2006-07-08 Thread James Courtier-Dutton
Hi, Is there a standard way of converting a 24bit sample to 16bit? I ask because I think that in different scenarios, one would want a different result. 1) scale a 24bit value to a 16bit by simple multiplication by a fraction. 2) bit shift the 24bit value, so that the most useful 16bits are

Re: [linux-audio-dev] Converting a 24bit sample to 16bit

2006-07-08 Thread Paul Davis
On Sat, 2006-07-08 at 13:34 +0100, James Courtier-Dutton wrote: Hi, Is there a standard way of converting a 24bit sample to 16bit? I ask because I think that in different scenarios, one would want a different result. 1) scale a 24bit value to a 16bit by simple multiplication by a fraction.

Re: [linux-audio-dev] Converting a 24bit sample to 16bit

2006-07-08 Thread Brett W. McCoy
On 7/8/06, James Courtier-Dutton [EMAIL PROTECTED] wrote: Is there a standard way of converting a 24bit sample to 16bit? I ask because I think that in different scenarios, one would want a different result. 1) scale a 24bit value to a 16bit by simple multiplication by a fraction. 2) bit shift

Re: [linux-audio-dev] Converting a 24bit sample to 16bit

2006-07-08 Thread Fons Adriaensen
On Sat, Jul 08, 2006 at 01:34:44PM +0100, James Courtier-Dutton wrote: Is there a standard way of converting a 24bit sample to 16bit? I ask because I think that in different scenarios, one would want a different result. 1) scale a 24bit value to a 16bit by simple multiplication by a fraction.

[linux-audio-dev] Re: LinuxSampler license

2006-07-08 Thread Juhana Sadeharju
In gimp list, I mentioned that I don't want my software to be used in Windows. That would encourage people to install Linux. My plan was to use GPL + Windows exclusion. I was very clearly informed that it would not work. Then why similar works for Linuxsampler? BTW, I'm still puzzled on what

Re: [linux-audio-dev] Re: LinuxSampler license

2006-07-08 Thread Lee Revell
On Sat, 2006-07-08 at 19:02 +0300, Juhana Sadeharju wrote: In gimp list, I mentioned that I don't want my software to be used in Windows. That would encourage people to install Linux. My plan was to use GPL + Windows exclusion. I was very clearly informed that it would not work. Then why

Re: [linux-audio-dev] modular sequencing environment/synth // any projects to dig in?

2006-07-08 Thread Tim Blechmann
hi all, On Wed, Jul 05, 2006 at 09:05:36PM +0200, Niklas Kl?gel wrote: wow, thanks! I am going to look into the source of the projects the next days, currently pnpd triggers most of my attention. thanks ... are there any plans to make pnpd compatible with pd patches? that would be

Re: [linux-audio-dev] modular sequencing environment/synth // any projects to dig in?

2006-07-08 Thread Tim Blechmann
I only took a few minutes to try it, I downloaded the source, but I think the version of SCons in my Ubuntu (Dapper) system wasn't new enough to work with the build script... In any case I played around but couldn't get it to compile. pnpd requires a pretty recent version of scons to build

Re: [linux-audio-dev] Re: LinuxSampler license

2006-07-08 Thread Dave Robillard
On Sat, 2006-07-08 at 19:02 +0300, Juhana Sadeharju wrote: In gimp list, I mentioned that I don't want my software to be used in Windows. That would encourage people to install Linux. My plan was to use GPL + Windows exclusion. I was very clearly informed that it would not work. Then why

[linux-audio-dev] Set rate return zero

2006-07-08 Thread Huu Phuoc
Hi everybody! I am a newbie to alsa programming. I am trying to follow the article which locates at http://www.suse.de/~mana/alsa090_howto.html to develop a playback program. My code here: snd_pcm_t*pcm_handle; unsigned int rate = 8000; // Sample rate returned by //