mpv-player / mpv-player/mpv

suspend "coreaudio-change-physical-format" when playing a music album

Open
#17,655 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Expected behavior of the wanted feature

Hello,

I'm testing the integration of mpv in Navidrome, it works nicely.

The only issue I have is when I try to listen to an album : if for example my sound card is set at 88220 before playing the album, the coreaudio-change-physical-format=yesallows mpv to switch automatically to the sample rate of the song (44100 most often). But at the end of the song, it switches back to the orignal value (88200), and then back to 44100 at the same time the second song starts. That makes a little pause (and small crackle) in the beginning of the song. On so on on all songs...

Would it be possible that when mpv detects there is a playlist (or several files) playing, is doesn't with back to an old value between the files ?

Thank you !

Alternative behavior of the wanted feature

No response

Log File

No response

Sample Files

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in mpv with coreaudio-change-physical-format enabled and a multi-file album or playlist whose tracks use the same sample rate. Trace the CoreAudio format transitions between consecutive files and after playback ends. Done means consecutive tracks do not restore the old device format between files, while playback completion still restores it appropriately.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.