dougreese / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

High pitch sound usb dac on latest armv6hf (streaming radio only) #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start squeezelite playing streaming radio goes into a high pitch double 
speed mode.
2. Kill process and play any mp3 and the sound is good.
3. Tune into a streaming radio station and back to double-time again.
4. The only way to stop it is to kill the process.

What version of the product are you using? On what operating system?
Your latest arm6hf binary on Raspi.

Please provide any additional information below.
Using a Creative Play USB DAC.

Thanks

Original issue reported on code.google.com by mark...@gmail.com on 25 Jul 2013 at 9:23

GoogleCodeExporter commented 9 years ago
Sounds like the radio station is playing at a sample rate not supported by the 
dac?  Can you post the output of debugging "-d all=debug" for this case?

Original comment by trio...@btinternet.com on 25 Jul 2013 at 6:38

GoogleCodeExporter commented 9 years ago
pi@raspberrypi ~ $ ./squeezelite-armv6hf -n Dining -d all=debug
[21:19:18.084133] stream_init:264 init stream
[21:19:18.086987] stream_init:265 streambuf size: 2097152
[21:19:18.092173] output_init:1337 init output
[21:19:18.093615] output_init:1340 outputbuf size: 3528000
[21:19:18.095089] output_init:1372 requested alsa_buffer: 40 alsa_period: 4 
format: any mmap: 1
[21:19:18.155348] output_init:1398 output: default maxrate: 384000
[21:19:18.156931] output_init:1406 unable to lock memory: Cannot allocate memory
[21:19:18.165793] output_init:1429 unable to set output sched fifo: Operation 
not permitted
[21:19:18.167183] decode_init:129 init decode
[21:19:18.169479] load_faad:560 dlerror: libfaad.so.2: cannot open shared 
object file: No such file or directory
[21:19:18.174518] load_vorbis:275 loaded libvorbisfile.so.3
[21:19:18.175333] output_thread:601 open output device: default
[21:19:18.189792] load_flac:235 loaded libFLAC.so.8
[21:19:18.191273] register_pcm:352 using pcm
[21:19:18.194142] load_mad:332 loaded libmad.so.0
[21:19:18.196019] discover_server:633 sending discovery
[21:19:18.199954] discover_server:644 got response from: 192.168.0.3:3483
[21:19:18.201733] slimproto:686 connecting to 192.168.0.3:3483
[21:19:18.204550] slimproto:713 connected
[21:19:18.206085] sendHELO:109 mac: b8:27:eb:b1:33:5f
[21:19:18.209186] sendHELO:111 cap: 
Model=squeezelite,ModelName=SqueezeLite,AccuratePlayPoints=1,HasDigitalOut=1,Max
SampleRate=384000,ogg,flc,aif,pcm,mp3
[21:19:18.211056] sendSETDName:210 set playername: Dining
[21:19:18.215688] alsa_open:270 opened device default using format: S32_LE 
sample rate: 44100 mmap: 1
[21:19:18.218318] alsa_open:335 buffer: 40 period: 4 -> buffer size: 3763 
period size: 940
[21:19:18.415154] process:409 strm
[21:19:18.416755] process_strm:219 strm command q
[21:19:18.418217] decode_flush:181 decode flush
[21:19:18.419820] output_flush:1443 flush output buffer
[21:19:18.421214] sendSTAT:151 STAT: STMf
[21:19:19.465879] process:409 audg
[21:19:19.467530] process_audg:357 audg gainL: 1378 gainR: 1378 adjust: 1
[21:19:19.469919] process:409 strm
[21:19:19.471185] process_strm:219 strm command s
[21:19:19.472548] process_strm:286 strm s autostart: 0 transition period: 10 
transition type: 1
[21:19:19.474121] sendSTAT:151 STAT: STMf
[21:19:19.475627] codec_open:204 codec open: 'm'
[21:19:19.477731] stream_sock:352 connecting to 192.168.0.3:9000
[21:19:19.480031] stream_sock:381 header: GET 
/stream.mp3?player=b8:27:eb:b1:33:5f HTTP/1.0

[21:19:19.483041] sendSTAT:151 STAT: STMc
[21:19:19.484105] process_strm:309 set fade mode: 1
[21:19:19.484997] process:409 audg
[21:19:19.485745] process_audg:357 audg gainL: 1378 gainR: 1378 adjust: 1
[21:19:19.489271] process:413 unhandled setd
[21:19:19.490838] process:413 unhandled setd
[21:19:19.491154] process:409 aude
[21:19:19.491905] process_aude:340 enable spdif: 1 dac: 1
[21:19:19.492410] process:409 audg
[21:19:19.493290] process_audg:357 audg gainL: 1378 gainR: 1378 adjust: 1
[21:19:19.513474] stream_thread:150 headers: len: 111
HTTP/1.1 200 OK
Server: Logitech Media Server (7.7.2 - 33893)
Connection: close
Content-Type: audio/mpeg

[21:19:19.518301] sendRESP:182 RESP
[21:19:19.600391] process:409 strm
[21:19:19.601989] process_strm:219 strm command t
[21:19:19.603535] sendSTAT:151 STAT: STMt
[21:19:19.899936] process:409 strm
[21:19:19.901242] process_strm:219 strm command t
[21:19:19.902573] sendSTAT:151 STAT: STMt
[21:19:20.200025] process:409 strm
[21:19:20.201224] process_strm:219 strm command t
[21:19:20.202706] sendSTAT:151 STAT: STMt
[21:19:20.448974] sendSTAT:151 STAT: STMl
[21:19:20.451619] process:409 strm
[21:19:20.453001] process_strm:219 strm command u
[21:19:20.454397] process_strm:273 unpause at: 1229500 now: 1229306
[21:19:20.455843] sendSTAT:151 STAT: STMr
[21:19:20.504594] mad_decode:189 mad_frame_decode error: lost synchronization
[21:19:20.506734] mad_decode:189 mad_frame_decode error: bad main_data_begin 
pointer
[21:19:20.509507] mad_decode:201 setting track_start
[21:19:20.511235] _checkfade:1267 fade mode: 1 duration: 10 track-start
[21:19:20.512673] _checkfade:1317 resize outputbuf for crossfade
[21:19:20.523743] mad_decode:229 gapless: skipping 529 frames at start
[21:19:21.458406] sendSTAT:151 STAT: STMt
[21:19:22.461179] sendSTAT:151 STAT: STMt
[21:19:23.066190] process:409 strm
[21:19:23.067478] process_strm:219 strm command t
[21:19:23.068964] sendSTAT:151 STAT: STMt
[21:19:24.071669] sendSTAT:151 STAT: STMt
[21:19:25.074225] sendSTAT:151 STAT: STMt
[21:19:26.076949] sendSTAT:151 STAT: STMt
[21:19:27.079852] sendSTAT:151 STAT: STMt
[21:19:28.066550] process:409 strm
[21:19:28.067850] process_strm:219 strm command t
[21:19:28.069350] sendSTAT:151 STAT: STMt
^C[21:19:28.536029] slimproto_stop:763 slimproto stop
[21:19:28.537622] sendSTAT:151 STAT: STMt
[21:19:28.639912] decode_close:166 close decode
[21:19:28.732383] stream_close:296 close stream
[21:19:28.825393] output_close:1457 close output

Eventually after 10 secs of chipmunks singing it will stop playing anything.

Thanks

Original comment by mark...@gmail.com on 26 Jul 2013 at 9:21

GoogleCodeExporter commented 9 years ago
Radio Hauraki 99.0 (Rock)
64kbps CBR, MP3 Internet Radio

Original comment by mark...@gmail.com on 26 Jul 2013 at 9:24

GoogleCodeExporter commented 9 years ago
Is this player synchronized or do you have mp3 proxying via the server set?  I 
don't understand why the radio stream is being played via the server rather 
than direct.

Original comment by trio...@btinternet.com on 27 Jul 2013 at 9:43

GoogleCodeExporter commented 9 years ago
It is synced with another squeezebox in the lounge, I will test this without 
the synchronization and let you know. 

BTW: I have tried PicorePlayer and the same problem exists. I have also been 
testing different settings and I can get the device to operate perfectly with 
-b 300:300 on both Raspi and PicorePlayer (have to prefix alsa device with 
hw:on on the Picoreplayer). Does this makes sense to you? Thanks.

Original comment by mark...@gmail.com on 27 Jul 2013 at 10:34

GoogleCodeExporter commented 9 years ago
Please retest with latest versions - there are more options for resampling 
unsupported rates in the latest 1.4 beta.  You need to have libsoxr installed 
and start squeezelite with -R E to use these.

Original comment by trio...@btinternet.com on 23 Dec 2013 at 10:43

GoogleCodeExporter commented 9 years ago
I had chipmunk-like music with previous versions, but 1.4 with that -R E seems 
to have cleared everything up for me.  I've been running on 1.4 for 4 days so 
far and zero problems.

Original comment by mi...@waaratechnologies.com on 30 Dec 2013 at 8:16

GoogleCodeExporter commented 9 years ago
Closing as fixed by 1.4 with -R E option

Original comment by trio...@btinternet.com on 10 Jan 2014 at 10:16