Open schrma opened 5 years ago
Hi @schrma!,
thanks very much for taking the time to report problems.
Sound from youtube and spotify available
I'm not clear on one thing. Are you trying to play audio from YouTube and Spotify simultaneously on the Rpi (i.e. with two tizonia processes running in parallel)?
I believe ALSA does not allow mixing unless you use the dmix plugin https://stackoverflow.com/questions/14398573/alsa-api-how-to-play-two-wave-files-simultaneously
Hi, thanks for the fast reply. I don't mean to play them simultaneously. It's just that youtube is working, but spotify not. So in principle the driver for the speaker is working for youtube, but not for spotify.
Issue Template
Description
I can stream from youtube over my speakers, but when I want to use spotify I get errors.
Thanks for your help!
Steps to Reproduce
Expected behavior: [What you expect to happen]
Actual behaviour: [What actually happens]
Reproduces how often: [What percentage of the time does it reproduce?] always
Versions
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
tizonia 0.18.0 Debug Info:
Installation Method Used
curl -kL https://goo.gl/Vu8qGR | bash
Additional Information
I added the log file. The following error can be seen: tizonia.log.0.txt
31-05-2019 02:55:16.685 - [PID:3536][TID:3587] [ERROR] [tiz.audio_renderer.prc] [arprc.c:alsa_error_handler:146] --- ALSA lib pcm.c:8403:(snd_pcm_set_params) Rate doesn't match (requested 44100Hz, get 48000Hz)
Output from the console /usr/bin/tizonia --spotify-tracks "The show must go on" tizonia 0.18.0. Copyright (C) 2019 Juan A. Rubio This software is part of the Tizonia project http://tizonia.org
[Spotify] [Connecting] : 'icl9d24uguoi0puw9c95l45ct'. [Spotify] [Track search] 'The show must go on'. [Spotify] [Track] 'The Show Must Go On - Remastered 2011' [Queen]. [Spotify] [Track] 'The Show Must Go On - 2011 Remaster' [Queen]. [Spotify] [Track] 'The Show Must Go On' [Pink Floyd]. [Spotify] [Track] 'The Show Must Go on Prt. 1' [Famous Last Words]. [Spotify] [Track] 'The Show Must Go On' [Queen]. [Spotify] [Track] 'The Show Must Go On' [MandoPony]. [Spotify] [Track] 'The Show Must Go On' [Celine Dion]. [Spotify] [Track] 'The Show Must Go On' [2CELLOS]. [Spotify] [Track] 'The Show Must Go On' [Three Dog Night]. [Spotify] [Track] 'More Than I Can Say - Remastered' [Leo Sayer]. [Spotify] [Track] 'The Show Must Go On' [Insane Clown Posse]. [Spotify] [Track] 'The Show Must Go on Prt. 2' [Famous Last Words]. [Spotify] [Track] 'The Show Must Go On - Original Film Version' [Jim Broadbent]. [Spotify] [Track] 'You Make Me Feel Like Dancing - Remastered' [Leo Sayer]. [Spotify] [Track] 'When I Need You - Remastered' [Leo Sayer]. [Spotify] [Track] 'The Show Must Go On' [Michael Giacchino]. [Spotify] [Track] 'The Show Must Go On - Remastered 2011' [Queen]. [Spotify] [Track] 'The Show Must Go On' [2CELLOS]. [Spotify] [Track] 'The Show Must Go On' [Solence]. [Spotify] [Track] 'The Show Must Go On' [Queen]. [Spotify] [Tracks in queue] '20'.
[Spotify] [Login] 'icl9d24uguoi0puw9c95l45ct' logged in. [Spotify] [Connected] : 'The show must go on'.
tizonia exiting (OMX_ErrorInsufficientResources).
[OMX.Aratelia.audio_renderer.alsa.pcm:port:0] [OMX_ErrorInsufficientResources]
I assume that spotify is streaming with 44100 and youtube with 48000. How can I change this behaviour?
My $HOME/.asoundrc-File pcm.!default { type hw card 1 } ctl.!default { type hw card 1 } I use in tizonia.conf default-audio-renderer = OMX.Aratelia.audio_renderer.alsa.pcm