On Sat, Jun 09, 2012 at 12:58:16PM +0100, Stuart Henderson wrote: > On 2012/06/08 17:08, Alexandre Ratchov wrote: > > On Fri, Jun 01, 2012 at 12:50:14AM +0600, Alexandr Shadchin wrote: > > > > > > * Simplify sndio backend > > > (+ fix sthen@ segfault, but resampling still does not work for him) > > > > > > > Hi, > > > > The sndio backend is fine. > > Any idea about this? Does it seem more likely to be a problem with > deadbeef or with sndiod? It's not too important whether the resampling > is done in sndiod or in deadbeef but it doesn't work anywhere for me. > > File is 22KHz stereo (though I get the same with any non-48KHz files > that I've tried). > > $ ffprobe emergency.wav 2>&1 |tail -3 > Input #0, wav, from 'emergency.wav': > Duration: 00:00:04.04, bitrate: 352 kb/s > Stream #0.0: Audio: pcm_u8, 22050 Hz, 2 channels, u8, 352 kb/s > > sndiod is running > > $ pgrep -lf sndio > 14709 /usr/bin/sndiod -v 109 -b 47040 -a off -fsun:1 -L - > > Attempting playback in deadbeef (including the patches from today): > > streamer_set_output_format 8bit int 2ch 22050Hz channelmask=3 > streamer_set_output_format 8bit int 2ch 22050Hz channelmask=3, bufferfill: 0 > sndio: parameters not supported > streamer_set_output_format 16bit int 2ch 44100Hz channelmask=3, bufferfill: 0 > sndio: parameters not supported > streamer: failed to start playback (start track) > > sndiod should handle sample conversion transparent to the application > shouldn't it?
it should, sndiod accepts anything. Probably we get wrong deadbeef parameters negociation logic. Looking at this.. -- Alexandre