WASAPI plugin?

Need help with MPD?
Post Reply
chris
Posts: 1
Joined: June 18th, 2020, 11:23 am

WASAPI plugin?

Post by chris »

Hello,

I've been trying to get MPD running on my Windows laptop (specifically the precompiled x64 0.21.24 version). For the most part it's been pretty straightforward, but I have hit a wall getting it to work with WASAPI.

The plugin reference (https://www.musicpd.org/doc/html/plugins.html) lists WASAPI as an output plugin, but if I try to use it, I get "exception: nested: No such audio output plugin: wasapi".

The relevant section of my mpd.conf is:

Code: Select all

audio_output {
    type      "wasapi"
    name      ""
    enumerate "yes"
    exclusive "yes"
}
The source folder mpd-0.21.24\src\output\plugins only contains WinmmOutputPlugin files for Windows - is wasapi support still under development, or am I missing something key?

Thanks v much,
Chris
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: WASAPI plugin?

Post by max »

This is a MPD 0.22 feature, but you're using 0.21.
bern
Posts: 47
Joined: April 28th, 2019, 6:06 pm

Re: WASAPI plugin?

Post by bern »

Hi,
I tried to compile git(0.22) WIN version on my ubuntu server 20.04 but receive error:
configure: error: unknown endianness
during crosscompiling libmodplug-0.8.9.0
see details:
https://paste.ubuntu.com/p/HWzQWjMTQ3/
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: WASAPI plugin?

Post by max »

Don't use sudo!
Upload libmodplug's config.log.
bern
Posts: 47
Joined: April 28th, 2019, 6:06 pm

Re: WASAPI plugin?

Post by bern »

max wrote: June 19th, 2020, 2:30 pm Don't use sudo!
AFK I couldn't run the script as a normal user
max wrote: June 19th, 2020, 2:30 pmUpload libmodplug's config.log.
https://paste.ubuntu.com/p/6csgH6q7K8/
Oh I see I should install 'g++-mingw-w64-x86-64' packet. After install I'll try again
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: WASAPI plugin?

Post by max »

I have never run the script as root.
bern
Posts: 47
Joined: April 28th, 2019, 6:06 pm

Re: WASAPI plugin?

Post by bern »

max wrote: June 19th, 2020, 4:16 pm I have never run the script as root.
Ok so I removed my windows x64 build and tried one more time as normal user. Unfortunately at the end I receive an error:
https://paste.ubuntu.com/p/kZ2PgS8dc3/
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: WASAPI plugin?

Post by max »

Your C++ compiler is too old. MPD 0.22 requires (as documented) a C++17 compliant compiler, but yours is not.
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: WASAPI plugin?

Post by max »

Strangely, the GCC website (https://gcc.gnu.org/onlinedocs/libstdc+ ... s.iso.2017) documents that std::string_view is available since GCC 7.1, and you have GCC 9.3, so it *should* work. But it does not. Something is broken with your compiler installation, but I don't know what. In any case, it is not standards-compliant, because std::string_view is missing.
bern
Posts: 47
Joined: April 28th, 2019, 6:06 pm

Re: WASAPI plugin?

Post by bern »

My Ubuntu server installation:

Code: Select all

ela@akacja:~$ hostnamectl
   Static hostname: akacja
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 09a89f6de87a4acb94b56fd6d1926590
           Boot ID: 35c970b2265c44b49d9bea8ca65290f2
  Operating System: Ubuntu 20.04 LTS
            Kernel: Linux 5.4.0-37-generic
      Architecture: x86-64
and installed compillers:

Code: Select all

ela@akacja:~$ dpkg --list | grep compiler
ii  device-tree-compiler                       1.5.1-1                                   amd64        Device Tree Compiler for Flat Device Trees
ii  g++                                        4:9.3.0-1ubuntu2                          amd64        GNU C++ compiler
ii  g++-9                                      9.3.0-10ubuntu2                           amd64        GNU C++ compiler
ii  g++-mingw-w64-x86-64                       9.3.0-7ubuntu1+22~exp1ubuntu4             amd64        GNU C++ compiler for MinGW-w64 targeting Win64
ii  gcc                                        4:9.3.0-1ubuntu2                          amd64        GNU C compiler
ii  gcc-9                                      9.3.0-10ubuntu2                           amd64        GNU C compiler
ii  gcc-9-arm-linux-gnueabihf                  9.3.0-10ubuntu1cross2                     amd64        GNU C compiler (cross compiler for armhf architecture)
ii  gcc-arm-linux-gnueabihf                    4:9.3.0-1ubuntu2                          amd64        GNU C compiler for the armhf architecture
ii  gcc-mingw-w64-x86-64                       9.3.0-7ubuntu1+22~exp1ubuntu4             amd64        GNU C compiler for MinGW-w64 targeting Win64
ii  libllvm9:amd64                             1:9.0.1-12                                amd64        Modular compiler and toolchain technologies, runtime library
ii  libxkbcommon0:amd64                        0.10.0-1                                  amd64        library interface to the XKB compiler - shared library
Do you think I should uninstall g++ and gcc and run the mpd building script again?
Post Reply