[PlanetCCRMA] durn ole alsaplayer

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Sat Mar 29 12:25:02 2003


> Anyone have any thoughts as to why alsaplayer won't use alsa?  (It
> works fine with the -d jack option).

Given the name one would think otherwise, but alsaplayer is not smart
enough to figure out what parameters to use with some cards. All the
information is there and can be accessed through the api... sigh...

> [root@ruined root]# alsaplayer
> error on set_periods (13)
> Unavailable hw params:
> ACCESS:  RW_INTERLEAVED
> FORMAT:  S16_LE
> SUBFORMAT:  STD
> SAMPLE_BITS: 16
> FRAME_BITS: 32
> CHANNELS: 2
> RATE: 44100
> PERIOD_TIME: (11609 11610)
> PERIOD_SIZE: 512
> PERIOD_BYTES: 2048
> PERIODS: [1 13)
> BUFFER_TIME: (11609 148595)
> BUFFER_SIZE: [512 6553]
> BUFFER_BYTES: [2048 26212]
> TICK_TIME: 1000
> error on set_periods (7)

It tried to set periods to 7 and that apparently is not possible... I
can only guess but the card says periods can go from 1 to 13? But most
probably only if you use a small buffer size, anyway, what you have to
do is to tweak the command line parameters -f and -g till you find a
combination that works with your soundcard, 

I'm glad you enjoyed the lad presentation, it was a lot of fun to be
there and meet "important" lad denizens...

-- Fernando