Git Product home page Git Product logo

Comments (3)

ralph-irving avatar ralph-irving commented on July 17, 2024

What version of squeezelite pulse are you using?
Please provide a log with -d all=debug enabled when you try to play a non 44.1K file. Remove the lms custom-convert rule first.
Have you confirmed your device supports sample rates other than 44.1K?
The pulseaudio version of squeezelite has been available for over a year now and this is the first report of this nature. I use the pulseaudio build on debian 9 daily and can confirm that squeezelite pulse does support non 44.1K sample rates.

I can't reproduce your issue, other sample rates play okay.

./squeezelite-pulse -o 0 -d all=info
[11:05:11.798911] output_init_common:414 supported rates: 384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
[11:05:11.798978] _pa_open:348 opened device 0 - Built-in Audio Analog Stereo at 44100 latency 0 ms
[11:05:11.809405] sendHELO:132 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.0-1112,ModelName=SqueezeLite,MaxSampleRate=384000,aac,ogg,flc,aif,pcm,mp3

[11:05:31.230150] write_cb:116 setting track_start
[11:05:31.230995] _output_frames:64 start buffer frames: 26496
[11:05:31.231073] _output_frames:149 track start sample rate: 44100 replay_gain: 65536
[11:10:36.408233] stream_thread:253 end of stream
[11:10:56.888307] decode_thread:100 decode complete

[11:10:57.091543] write_cb:116 setting track_start
[11:11:06.532402] _output_frames:149 track start sample rate: 88200 replay_gain: 0
[11:11:06.532503] pa_stream_finished:219 stream finished
[11:11:06.541894] _pa_open:348 opened device 0 - Built-in Audio Analog Stereo at 88200 latency 0 ms
[11:14:21.853341] stream_thread:253 end of stream

from squeezelite.

craigmaloney avatar craigmaloney commented on July 17, 2024

This is what I ran:

craig@lister:~/bin$ ./squeezelite-pulse -o 0 -d all=info
[12:14:10.273882] stream_init:294 init stream
[12:14:10.274753] output_init_pa:493 init output
[12:14:10.274775] output_init_pa:513 requested latency: 0
[12:14:20.277692] output_init_common:411 supported rates: 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000 
[12:14:20.277745] _pa_open:330 opened device 0 - HDA NVidia Digital Stereo (HDMI) at 44100 latency 0 ms
[12:14:20.486730] decode_init:153 init decode
[12:14:20.500672] load_faad:611 loaded libfaad.so.2
[12:14:20.500699] register_faad:641 using faad to decode aac
[12:14:20.500849] load_vorbis:305 loaded libvorbisfile.so.3
[12:14:20.500859] register_vorbis:334 using vorbis to decode ogg
[12:14:20.500887] load_flac:258 loaded libFLAC.so.8
[12:14:20.500894] register_flac:286 using flac to decode flc
[12:14:20.500899] register_pcm:415 using pcm to decode aif,pcm
[12:14:20.534266] load_mad:384 loaded libmad.so.0
[12:14:20.534281] register_mad:413 using mad to decode mp3
[12:14:20.534340] discover_server:826 sending discovery
[12:14:20.534539] discover_server:837 got response from: 192.168.1.2:3483
[12:14:20.534558] slimproto:925 connecting to 192.168.1.2:3483
[12:14:20.534634] slimproto:964 connected
[12:14:20.534644] slimproto:975 local player
[12:14:20.534651] sendHELO:138 mac: 60:a4:4c:5f:12:ac
[12:14:20.534659] sendHELO:140 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8.7-1052,ModelName=SqueezeLite,MaxSampleRate=192000,aac,ogg,flc,aif,pcm,mp3,loc
[12:14:20.603509] decode_flush:227 decode flush
[12:14:20.603542] output_flush:424 flush output buffer
[12:15:24.059326] decode_flush:227 decode flush
[12:15:24.059359] output_flush:424 flush output buffer
[12:15:24.099685] codec_open:255 codec open: 'f'
[12:15:24.120885] stream_sock:393 connecting to 192.168.1.2:9000
[12:15:24.121006] stream_sock:422 header: GET /stream.mp3?player=60:a4:4c:5f:12:ac HTTP/1.0


[12:15:24.151709] stream_thread:180 headers: len: 118
HTTP/1.1 200 OK
Server: Logitech Media Server (7.9.1 - 1522157629)
Connection: close
Content-Type: audio/x-flac


[12:15:24.199256] write_cb:116 setting track_start
[12:15:24.201623] _output_frames:62 start buffer frames: 77824
[12:15:24.201663] _output_frames:147 track start sample rate: 48000 replay_gain: 0
[12:15:24.201670] pa_stream_finished:201 stream finished
[12:15:24.203283] _pa_open:330 opened device 0 - HDA NVidia Digital Stereo (HDMI) at 48000 latency 0 ms
^C[12:15:56.185951] slimproto_stop:1004 slimproto stop
[12:15:56.286078] decode_close:212 close decode
[12:15:56.297109] stream_close:331 close stream
[12:15:56.394303] output_close_pa:533 close output

No audio was produced. If I add -Z 44100 it works.

I agree, this is strange. Before I would use -o pulse and it worked most of the time before it started going haywire had to be restarted.

Hope this helps! Thanks!

from squeezelite.

ralph-irving avatar ralph-irving commented on July 17, 2024

If you were using -o pulse you would have been using the alsa build not pulseaudio correct?
Sorry, there is no way for me to troubleshoot your pulseaudio issue as I'm unable to reproduce it.
It sounds like an issue with your hdmi device. Can you play a 48K audio stream to the pulseaudio hdmi device using another audio player for an extended period of time?

from squeezelite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.