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 -
> 

May be need use -frsnd/1 ?

> 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?
> 
> Other info, this is a UA-1EX, dip switches set for 48KHz
> 
> $ dmesg|grep audio
> uaudio0 at uhub2 port 2 configuration 1 interface 0 "EDIROL UA-1EX" rev 
> 1.10/1.00 addr 3
> uaudio0: audio rev 1.00, 0 mixer controls
> audio0 at uaudio0
> 
> $ audioctl
> name=USB audio
> version=
> config=uaudio
> encodings=slinear_le:16:2:1
> properties=full_duplex,independent
> full_duplex=0
> fullduplex=0
> blocksize=24000
> hiwat=2
> lowat=1
> output_muted=0
> monitor_gain=0
> mode=
> play.rate=48000
> play.sample_rate=48000
> play.channels=2
> play.precision=16
> play.bps=2
> play.msb=1
> play.encoding=slinear_le
> play.gain=127
> play.balance=32
> play.port=0x0
> play.avail_ports=0x0
> play.seek=0
> play.samples=0
> play.eof=0
> play.pause=1
> play.error=0
> play.waiting=0
> play.open=0
> play.active=0
> play.buffer_size=65536
> play.block_size=24000
> play.errors=0
> record.rate=48000
> record.sample_rate=48000
> record.channels=2
> record.precision=16
> record.bps=2
> record.msb=1
> record.encoding=slinear_le
> record.gain=127
> record.balance=32
> record.port=0x0
> record.avail_ports=0x0
> record.seek=0
> record.samples=0
> record.eof=0
> record.pause=0
> record.error=0
> record.waiting=0
> record.open=0
> record.active=0
> record.buffer_size=65536
> record.block_size=9600
> record.errors=0

-- 
Alexandr Shadchin

Reply via email to