[GH-ISSUE #214] Non-stereo audio outputs don't work #159

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

Originally created by @dmilith on GitHub (Nov 16, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/214

Describe the bug
Every song is resampled to a much higher pitch (big playback speedup)

To Reproduce
Just compile master (96059d95d6) and play anything on Mac.

Expected behavior
Regular play like after reset to 697c61aa05

Environment

  • OS: macOS on M1
  • Version: 12.0.1 Monterey

Additional context
Unsure it's relevant, but all my devices work in 44.1kHz mode (set via Audio Midi Setup app)

Originally created by @dmilith on GitHub (Nov 16, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/214 **Describe the bug** Every song is resampled to a much higher pitch (big playback speedup) **To Reproduce** Just compile master (96059d95d6a69294c0847bfd0f67d0f6dda11e47) and play anything on Mac. **Expected behavior** Regular play like after reset to 697c61aa052cf9b6a63c8d6090dc8b5bcb01cd75 **Environment** - OS: macOS on M1 - Version: 12.0.1 Monterey **Additional context** Unsure it's relevant, but all my devices work in 44.1kHz mode (set via Audio Midi Setup app)
kerem 2026-02-28 14:31:02 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jpochyla commented on GitHub (Nov 16, 2021):

Strange, I have the exact same setup, and it ofc works correctly. With 44.1kHz output it shouldn't even resample.

<!-- gh-comment-id:970663089 --> @jpochyla commented on GitHub (Nov 16, 2021): Strange, I have the exact same setup, and it ofc works correctly. With 44.1kHz output it shouldn't even resample.
Author
Owner

@jpochyla commented on GitHub (Nov 16, 2021):

@dmilith What details do you get at line opening output stream: StreamConfig { ... from the log, please?

<!-- gh-comment-id:970669774 --> @jpochyla commented on GitHub (Nov 16, 2021): @dmilith What details do you get at line `opening output stream: StreamConfig { ...` from the log, please?
Author
Owner

@dmilith commented on GitHub (Nov 17, 2021):

@jpochyla Looks good… but doesn't play right:

[2021-11-17T08:44:00Z INFO  psst_core::audio::output] using audio device: "Komplete Audio 6"
[2021-11-17T08:44:00Z INFO  psst_core::cache] using cache: "/Users/dmilith/Library/Caches/Psst"
[2021-11-17T08:44:00Z INFO  psst_core::audio::output] opening output stream: StreamConfig { channels: 6, sample_rate: SampleRate(44100), buffer_size: Default }
[2021-11-17T08:44:00Z INFO  psst_gui::data::config] saved config: "/Users/dmilith/Library/Application Support/Psst/config.json"
[2021-11-17T08:44:00Z INFO  psst_core::session::access_token] access token expired, requesting```
<!-- gh-comment-id:971360618 --> @dmilith commented on GitHub (Nov 17, 2021): @jpochyla Looks good… but doesn't play right: ```[2021-11-17T08:44:00Z INFO psst_gui::data::config] loading config: "/Users/dmilith/Library/Application Support/Psst/config.json" [2021-11-17T08:44:00Z INFO psst_core::audio::output] using audio device: "Komplete Audio 6" [2021-11-17T08:44:00Z INFO psst_core::cache] using cache: "/Users/dmilith/Library/Caches/Psst" [2021-11-17T08:44:00Z INFO psst_core::audio::output] opening output stream: StreamConfig { channels: 6, sample_rate: SampleRate(44100), buffer_size: Default } [2021-11-17T08:44:00Z INFO psst_gui::data::config] saved config: "/Users/dmilith/Library/Application Support/Psst/config.json" [2021-11-17T08:44:00Z INFO psst_core::session::access_token] access token expired, requesting```
Author
Owner

@dmilith commented on GitHub (Nov 17, 2021):

My config part (excluding credentials):

"audio_quality": "High",
"theme": "Dark",
"volume": 1.0,
"last_route": "SavedTracks",
"queue_behavior": "Sequential"
<!-- gh-comment-id:971361186 --> @dmilith commented on GitHub (Nov 17, 2021): My config part (excluding credentials): ```json "audio_quality": "High", "theme": "Dark", "volume": 1.0, "last_route": "SavedTracks", "queue_behavior": "Sequential" ```
Author
Owner

@dmilith commented on GitHub (Nov 17, 2021):

Unsure why it sees 6 channels, where I have only 2 (stereo)

<!-- gh-comment-id:971363215 --> @dmilith commented on GitHub (Nov 17, 2021): Unsure why it sees 6 channels, where I have only 2 (stereo)
Author
Owner

@jpochyla commented on GitHub (Nov 17, 2021):

Oooooh, that's it :)

<!-- gh-comment-id:971364614 --> @jpochyla commented on GitHub (Nov 17, 2021): Oooooh, that's it :)
Author
Owner

@jpochyla commented on GitHub (Nov 17, 2021):

Can you please try with 6e65010 (master)?

<!-- gh-comment-id:971371729 --> @jpochyla commented on GitHub (Nov 17, 2021): Can you please try with 6e65010 (master)?
Author
Owner

@dmilith commented on GitHub (Nov 17, 2021):

Still detects 6 channels, still the same output.

<!-- gh-comment-id:971379101 --> @dmilith commented on GitHub (Nov 17, 2021): Still detects 6 channels, still the same output.
Author
Owner

@paolobarbolini commented on GitHub (Nov 17, 2021):

Can you please try with 6e65010 (master)?

I was about to report the same issue but your last commit fixed it for me. I'm on Ubuntu 21.10 BTW

<!-- gh-comment-id:971380953 --> @paolobarbolini commented on GitHub (Nov 17, 2021): > Can you please try with [6e65010](https://github.com/jpochyla/psst/commit/6e650108c5cdec84cdc4b1a0d112a4635e9a1c0c) (master)? I was about to report the same issue but your last commit fixed it for me. I'm on Ubuntu 21.10 BTW
Author
Owner

@dmilith commented on GitHub (Nov 17, 2021):

I think it may be specific to my sound card… which indeed is 6 channels, but only first two are used for my stereo setup.

<!-- gh-comment-id:971383549 --> @dmilith commented on GitHub (Nov 17, 2021): I think it may be specific to my sound card… which indeed is 6 channels, but only first two are used for my stereo setup.
Author
Owner

@dmilith commented on GitHub (Nov 17, 2021):

Maybe these will help:

So the audio system setup is:
https://s.verknowsys.com/4b842c8898d139a8b7e7637e0ac83b09.png

but the device is:
https://s.verknowsys.com/f5d70fff73833331b5c7a39fce1300ca.png

<!-- gh-comment-id:971392447 --> @dmilith commented on GitHub (Nov 17, 2021): Maybe these will help: So the audio system setup is: https://s.verknowsys.com/4b842c8898d139a8b7e7637e0ac83b09.png but the device is: https://s.verknowsys.com/f5d70fff73833331b5c7a39fce1300ca.png
Author
Owner

@thebiblelover7 commented on GitHub (Nov 17, 2021):

Can reproduce on linux. At least I can hear the audio at a much higher pitch than the original.

<!-- gh-comment-id:971633447 --> @thebiblelover7 commented on GitHub (Nov 17, 2021): Can reproduce on linux. At least I can hear the audio at a much higher pitch than the original.
Author
Owner

@thebiblelover7 commented on GitHub (Nov 17, 2021):

Oops, spoke too soon, it works on the latest branch (master).

<!-- gh-comment-id:971643683 --> @thebiblelover7 commented on GitHub (Nov 17, 2021): Oops, spoke too soon, it works on the latest branch (master).
Author
Owner

@jpochyla commented on GitHub (Nov 21, 2021):

@dmilith can you please try branch stereo_map? I've added some simple channel mapping that just copies left/right and mutes the remaining channels.

<!-- gh-comment-id:974864644 --> @jpochyla commented on GitHub (Nov 21, 2021): @dmilith can you please try branch `stereo_map`? I've added some simple channel mapping that just copies left/right and mutes the remaining channels.
Author
Owner

@dmilith commented on GitHub (Nov 24, 2021):

@jpochyla Works like a charm on the stereo_map branch!

<!-- gh-comment-id:977880030 --> @dmilith commented on GitHub (Nov 24, 2021): @jpochyla Works like a charm on the stereo_map branch!
Author
Owner

@jpochyla commented on GitHub (Nov 27, 2021):

@dmilith Merged to master :) The mapping is really rudimentary and the whole audio filter pipeline a bit messy, but at least it works.

<!-- gh-comment-id:980692249 --> @jpochyla commented on GitHub (Nov 27, 2021): @dmilith Merged to master :) The mapping is really rudimentary and the whole audio filter pipeline a bit messy, but at least it works.
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#159
No description provided.