Softsqueeze pretty-much assumes 44100 frame/s (as do various bits of
SS).
The following snippet is from
org.titmuss.softsqueeze.audioPlayer.java:
Code:
--------------------
if (format == 'm') { // mp3
audioFormat = new
AudioFormat(AudioDecoder.MPEG1L3, 44100f,
AudioSystem.NOT_SPECIFIED, 2,
AudioSystem.NOT_SPECIFIED,
AudioSystem.NOT_SPECIFIED,
false);
} else if (format == 'f') { // flac
audioFormat = new
AudioFormat(AudioDecoder.FLAC, 44100f,
AudioSystem.NOT_SPECIFIED, 2,
AudioSystem.NOT_SPECIFIED,
AudioSystem.NOT_SPECIFIED,
false);
} 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);
} else if (format == 'o') { // ogg
/* one step less to non-hardcoded format */
audioFormat = new AudioFormat(AudioDecoder.OGG,
44100f,
AudioSystem.NOT_SPECIFIED, 2,
AudioSystem.NOT_SPECIFIED,
AudioSystem.NOT_SPECIFIED,
false);
} else {
throw new AudioException("Unknown audio format
requested: " + format);
}
--------------------
So, I guess you could get it to play those files by forcing the server
to transcode to PCM for your SoftSqueeze players.
Alan.
--
awy
------------------------------------------------------------------------
awy's Profile: http://forums.slimdevices.com/member.php?userid=7480
View this thread: http://forums.slimdevices.com/showthread.php?t=30776
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta