I did a quick check before I posted and the code looked OK for PCM 

Code:
--------------------
                        } else if (format == 'p') { // pcm
                                float pcmSampleRates[] = {
                                        11025f, 22050f, 32000f, 44100f, 48000f, 
                                        8000f, 12000f, 16000f, 24000f, 96000f
                                };
                                int pcmSampleWidths[] = {
                                  8, 16, 24, 32
                                };
                                
                                float sampleRate = 
pcmSampleRates[pcmSampleRate];
                                int sizeInBits = pcmSampleWidths[pcmSampleSize];
                                
                                audioFormat = new AudioFormat(
                                                        
AudioFormat.Encoding.PCM_SIGNED,
                                                        sampleRate,
                                                        16,
                                                        pcmChannels, 
                                                        pcmChannels * 
(sizeInBits / 8),
                                                        sampleRate,
                                                        pcmEndian);
--------------------

However for the Flac and MP3 - the handling will depend on the
libraries and the settings passed along in those streams.

The user may in fact be interested in 24bits with rates higher than
44.1kHz so this argument is irrelevant as SBS would also need an update
to its Softsqueeze profile.

So the advice remains the same - they may be better off using
squeezeslave.


-- 
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=62060

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to