Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some audio files does not play under Windows WASAPI exclusive mode #967

Closed
parkmino opened this issue Sep 29, 2020 · 8 comments
Closed

Some audio files does not play under Windows WASAPI exclusive mode #967

parkmino opened this issue Sep 29, 2020 · 8 comments

Comments

@parkmino
Copy link

Bug report

Describe the bug

MPD does not play mp3 and flac 96KHz files under WASAPI exclusive mode while there is no problem with flac 44.1KHz.
Connection is lost or showing the following error message.

ERROR: Failed to open "wasapi" (wasapi); Format is not supported: AUDCLNT_E_UNSUPPORTED_FORMAT

Version

MPD 0.22 for Windows

Log

mpd.log

@MaxKellermann
Copy link
Member

@ibmibmibm please have a look

@ibmibmibm
Copy link
Contributor

Seems that 96kHz is not supported by your audio card.

@MaxKellermann
Copy link
Member

That is a condition which should be handled by the output plugin, by forcing a supported sample rate!

@ibmibmibm
Copy link
Contributor

Ok, I'll make this change and open a pull request

@parkmino
Copy link
Author

parkmino commented Nov 18, 2020

FYI, my audio card supports up to 192KHz.
It is strange not to be able to play even 44.1KHz mp3 files.
No problem with ALSA under ubuntu.

@ibmibmibm
Copy link
Contributor

@parkmino Could you try to play that file using this command:

mpv [musicfile] --msg-level=ao/wasapi=v --audio-exclusive --no-audio-display

with mpv for windows, and collect the logs for me? Thanks.

@parkmino
Copy link
Author

parkmino commented Nov 21, 2020

@ibmibmibm Please find the attached file.

mpv.log

ibmibmibm added a commit to ibmibmibm/MPD that referenced this issue Nov 26, 2020
* Add ComWorker to run all COM relative function in same thread
* Use WinEvent for as a condition_variable without lock

See MusicPlayerDaemon#967
ibmibmibm added a commit to ibmibmibm/MPD that referenced this issue Nov 26, 2020
* Add ComWorker to run all COM relative function in same thread
* Add Interrupt interface
* Use WinEvent for as a condition_variable without lock

See MusicPlayerDaemon#967
ibmibmibm added a commit to ibmibmibm/MPD that referenced this issue Nov 26, 2020
* Add ComWorker to run all COM relative function in same thread.
* Add Interrupt interface.
* Reopen device on error.
* Use WinEvent for as a condition_variable without lock.

See MusicPlayerDaemon#967
@MaxKellermann
Copy link
Member

da642b2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants