On Sat, Feb 5, 2011 at 5:11 AM, Adam Nielsen <[email protected]> wrote:
>> Not true. XMMS2 can resample S8,U8,S16,U16,FLOAT. The only thing
>> missing is 32bit, which would include 24bit. All can be resampled from
>> any samplerate to any samplerate, and between mono and stereo.
>
> Just for the record I can't get float conversion to work.  The fluidsynth
> MIDI plugin gets float data from fluidsynth but I had to convert it to S16
> before passing it to XMMS2, otherwise I get this error:
>
> ERROR: ../src/xmms/sample.head.c:107: Unable to convert from FLOAT/48000/2
> to S32/48000/2.
>
> I don't know why it's trying to convert it to S32.  Maybe my sound card
> supports 24-bit output.  See http://bugs.xmms2.xmms.se/view.php?id=2359 if
> you want to test this, search fluidsynth.c for "float", there are three
> things to uncomment to switch it back to supplying float data.

It fails as the converter doesn't support S32. But it's strange that
it wants to resample to S32 when it should know that it doesn't have
any converters for that. Looking at src/xmms/streamtype.c might shed
some light on what's going on.

Experimental S32 support for the resampler is available here:
http://git.xmms.se/cgit.cgi/xmms2/xmms2-nano/log/?h=rfc-32bitresampler

What's left is to dump some sine waves to disk and verify correctness.

-- 
Daniel Svensson

--
_______________________________________________
Xmms2-devel mailing list
[email protected]
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to