[GH-ISSUE #29] Cannot play any song (NixOS) #22

Closed
opened 2026-02-28 14:30:02 +03:00 by kerem · 2 comments
Owner

Originally created by @qezz on GitHub (Jan 26, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/29

Hi,

I successfully build and run the app. GUI seems to show that a song is being played, though I cannot hear any sound.

The following appears in the log:

psst/psst-gui (master*) $ cargo run --release 
<... skipping warnings ...>
     Running `/home/user/source/psst/target/release/psst-gui`
[2021-01-26T12:58:08Z INFO  psst_gui::data::config] loading config: "/home/user/.config/Psst/config.json"
[2021-01-26T12:58:08Z WARN  druid::menu] MenuDesc::platform_default is not implemented for this platform.
[2021-01-26T12:58:08Z INFO  psst_core::cache] using cache: "/home/user/.cache/Psst"
[2021-01-26T12:58:08Z INFO  druid_shell::platform::gtk::application] gtk: Activated application
[2021-01-26T12:58:08Z INFO  psst_gui::delegate] session connected
[2021-01-26T12:58:14Z INFO  psst_core::audio_file] blocked at 14697124
[2021-01-26T12:58:14Z INFO  psst_core::audio_file] blocked at 14697124
[2021-01-26T12:58:15Z INFO  psst_core::audio_file] blocked at 14698495
<... snip ...>
[2021-01-26T12:58:15Z INFO  psst_core::audio_player] starting playback
[2021-01-26T12:58:15Z INFO  psst_core::audio_file] blocked at 14698495
[2021-01-26T12:58:15Z INFO  psst_core::audio_file] blocked at 14699866
[2021-01-26T12:58:15Z INFO  psst_core::audio_file] blocked at 14701237
<... snip ...>
[2021-01-26T12:58:15Z INFO  psst_core::audio_player] stale open result received, ignoring

Environment

  • cargo version: cargo 1.51.0-nightly (783bc43c6 2021-01-20)
  • rustc version: rustc 1.51.0-nightly (f4eb5d9f7 2021-01-25)
  • OS: NixOS, pulseaudio

I've found an issue about connection interruption (https://github.com/jpochyla/psst/issues/10), but my PC is connected via Ethernet cable, and also I cannot play any song at all.

Let me know if any additional information is needed.

Originally created by @qezz on GitHub (Jan 26, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/29 Hi, I successfully build and run the app. GUI seems to show that a song is being played, though I cannot hear any sound. The following appears in the log: ``` psst/psst-gui (master*) $ cargo run --release <... skipping warnings ...> Running `/home/user/source/psst/target/release/psst-gui` [2021-01-26T12:58:08Z INFO psst_gui::data::config] loading config: "/home/user/.config/Psst/config.json" [2021-01-26T12:58:08Z WARN druid::menu] MenuDesc::platform_default is not implemented for this platform. [2021-01-26T12:58:08Z INFO psst_core::cache] using cache: "/home/user/.cache/Psst" [2021-01-26T12:58:08Z INFO druid_shell::platform::gtk::application] gtk: Activated application [2021-01-26T12:58:08Z INFO psst_gui::delegate] session connected [2021-01-26T12:58:14Z INFO psst_core::audio_file] blocked at 14697124 [2021-01-26T12:58:14Z INFO psst_core::audio_file] blocked at 14697124 [2021-01-26T12:58:15Z INFO psst_core::audio_file] blocked at 14698495 <... snip ...> [2021-01-26T12:58:15Z INFO psst_core::audio_player] starting playback [2021-01-26T12:58:15Z INFO psst_core::audio_file] blocked at 14698495 [2021-01-26T12:58:15Z INFO psst_core::audio_file] blocked at 14699866 [2021-01-26T12:58:15Z INFO psst_core::audio_file] blocked at 14701237 <... snip ...> [2021-01-26T12:58:15Z INFO psst_core::audio_player] stale open result received, ignoring ``` #### Environment * cargo version: `cargo 1.51.0-nightly (783bc43c6 2021-01-20)` * rustc version: `rustc 1.51.0-nightly (f4eb5d9f7 2021-01-25)` * OS: NixOS, pulseaudio I've found an issue about connection interruption (https://github.com/jpochyla/psst/issues/10), but my PC is connected via Ethernet cable, and also I cannot play any song at all. Let me know if any additional information is needed.
kerem closed this issue 2026-02-28 14:30:02 +03:00
Author
Owner

@qezz commented on GitHub (Jan 26, 2021):

All right, I figured out that the following is relevant for me:

  1. miniaudio-rs examples are not working
  2. miniaudio's device backend is Null, here at line 104 github.com/jpochyla/psst@ad7b21031c/psst-core/src/audio_output.rs (L100-L104)

device.context().backend() returns Null

Edit: Well, maybe it's OK to have a 'Null' device on line 104, though it doesn't change to anything else even when device is supposed to be started.

<!-- gh-comment-id:767655831 --> @qezz commented on GitHub (Jan 26, 2021): All right, I figured out that the following is relevant for me: 1. miniaudio-rs examples are not working 2. miniaudio's device backend is Null, here at line 104 https://github.com/jpochyla/psst/blob/ad7b21031ccf25390cb09832bc2a08ecaa51e225/psst-core/src/audio_output.rs#L100-L104 `device.context().backend()` returns Null Edit: Well, maybe it's OK to have a 'Null' device on line 104, though it doesn't change to anything else even when device is supposed to be started.
Author
Owner

@qezz commented on GitHub (Jan 26, 2021):

Probably it's an issue with either my configuration or miniaudio. I close this issue since it's not about Psst.

P.S. Related miniaudio issue: mackron/miniaudio#267

<!-- gh-comment-id:767699817 --> @qezz commented on GitHub (Jan 26, 2021): Probably it's an issue with either my configuration or miniaudio. I close this issue since it's not about Psst. P.S. Related miniaudio issue: mackron/miniaudio#267
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#22
No description provided.