Experimental OpenMPT Wine Integration issues

Started by FreezeFlame(Alchemy), May 16, 2019, 23:02:39

Previous topic - Next topic

FreezeFlame(Alchemy)

I was trying to get the native sound system output for OpenMPT for performance reasons on a older Core 2 Duo laptop (not sure yet, need to get it to work for me to see). Been trying for a long time to get it to work, but i get the same error (windows.h is missing) always...

I know this is a experimental feature, yet i wish to see if it will make a difference in performance (my CPU is about ~50% for both cores) while playing a track. For anyone curious, this performance hit is only happening if im playing sound (be it a track, VSTi or even the OPL emulation) with OpenMPT.

I followed the guide for wine integration from here:
https://forum.openmpt.org/index.php?topic=5792.0

The operating system used is Linux Mint MATE 19.1 64bit.
WineHQ version is 4.0.1 (currently newest stable).
Installed the following packages using apt:

  • coreutils
  • make pkg-config cpp gcc g++
  • binutils
  • ccache
  • xterm
  • libpulse-dev
  • wine-stable wine64-tools libwine-dev

Checked "Enable Wine native host support (requires restarting OpenMPT)"
Set the "PulseAudio:" menu to "Auto", and the other to "Disabled".

Closed and opened OpenMPT again and...it went to heck.

Want to get it to work with only PulseAudio for now.

Help is really appreciated.
Blue Flames of the Night.

Was known as Alchemy before(with an Dialga picture).

StarWolf3000

You need the development files for cross-compiling, as you're targeting Windows and not Linux. There should be a package called mingw-w64-x86-64-dev (or mingw-w64-i386-dev, if you target a 32bit Wine) for your system.
mingw-w64-x86-64-dev/mingw-w64-i386-dev contains all required Windows-specific headers and libraries.

FreezeFlame(Alchemy)

QuoteYou need the development files for cross-compiling, as you're targeting Windows and not Linux. There should be a package called mingw-w64-x86-64-dev (or mingw-w64-i386-dev, if you target a 32bit Wine) for your system.
mingw-w64-x86-64-dev/mingw-w64-i386-dev contains all required Windows-specific headers and libraries.

Thanks for the hint. MinGW was the last thing in my mind for this.
But...

I installed it with:
sudo apt-get install mingw-w64-x86-64-dev


And opened OpenMPT again, and compiling failed again, same error.

Tried then downloading MinGW-w64 from here:
https://mingw-w64.org/doku.php/download/mingw-builds

and set it up with the options:
threads = win32
exceptions = seh

Opened OpenMPT again, and compiling failed again, same error.
Blue Flames of the Night.

Was known as Alchemy before(with an Dialga picture).

FreezeFlame(Alchemy)

Did some experimenting (again) and hit gold.

And it finally WORKS :)!

The magic words for the terminal:
sudo apt-get install wine-stable-dev
Blue Flames of the Night.

Was known as Alchemy before(with an Dialga picture).

Saga Musix

For the reference, choosing WASAPI output in OpenMPT yields very competitive results on current Wine 4.x. If you run a current Wine version, just using the built-in WASAPI output rather than the Wine wrapper can thus save you quite some hassle and still deliver very good results.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.