Triode wrote: 
> OK not that then...
> 
> Squeezelite will be different in that it opens the device at 44100 and
> then closes and reopens it at the desired sample rate - I wonder if
> doing this without a pause between the two rates causes a problem.
> 
> Are you able to rebuild squeezelite? If so you may want to try putting a
> sleep statement in alsa_close after closing the device.  [or making the
> default sample rate 32000]  I can provide a test binary if not - is this
> for the wandboard?

Triode, I made a build with a the function void output_init_common()
modified in output.c 

Code:
--------------------
                    dop_silence_frames((u32_t *)silencebuf_dop, 
MAX_SILENCE_FRAMES);
  )
  
  output.state = OUTPUT_STOPPED;
  output.current_sample_rate = 32000;
  output.device = device;
  output.fade = FADE_INACTIVE;
--------------------


I ran the resulting binary interactively as "./squeezelite -o
hw:CARD=UD501 -a 40::: -d output=debug" and I was able to play my 32kHz
sample rate track without incident. However, when I played a normal
44.1kHz flac track and then came back to the 32kHz one, it failed as
before.  However, switching the player off and on from jive menu
(output_thread:558 disabling output) and back on again let me recover
and play the 32kHz track properly once again. 

Also, whenever I played a genuine 96kHz sample rate FLAC file, paused
it, and went back to the dreaded 32kHz track, it played perfectly every
time. But always coming from 44.1kHz to 32kHz was a problem.

Finally, I'd like to mention that I keep getting the following message
when starting squeezelite in 44.1kHz mode

Code:
--------------------
    [03:28:28.750880] ALSA snd_pcm_hw_start:588 SNDRV_PCM_IOCTL_START failed 
(-32)
--------------------

I've noticed this comes up in quite a few logs posted here, but I don't
know whether it is relevant or not.



----------------------
"Dreamer, easy in the chair that really fits you..."
------------------------------------------------------------------------
dsdreamer's Profile: http://forums.slimdevices.com/member.php?userid=12588
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to