mint-n-pepper / DanceBotsEditor

Qt GUI to edit Dancebot Choreographies
https://www.dancebots.ch
GNU General Public License v3.0
4 stars 1 forks source link

mp3 player with swapped r/l audio channels #62

Closed tiemes closed 3 years ago

tiemes commented 3 years ago

our new (extremely expensive aliexpress ;-)) mp3 players have R/L audio swapped. To use them, we'd need to be able to swap channels in the software as well. maybe, we could include a 'options' dialog next to 'clear' or hide it behind the '?' dialog. I hope, swapping channels wouldnt be a huge deal?

philippReist commented 3 years ago

Hmm, this happened to us as well back in the day and I ended up soldering to fix the mp3 output.

I'll have a look this weekend. Should not be hard to add, I agree.

philippReist commented 3 years ago

Ok, I think this should work: https://github.com/philippReist/DanceBotsEditor/tree/feature-swapAudioChannels

Can you please test it? Especially on Mac as I don't have one anymore to do so.

Note that on a fresh install, I used 5.12.9 LTS and that worked.

In order to swap the channels, create a config.ini file alongside the executable (or if running from VS in the project folder in build).

Then, in the ini, write: [audio] swapChannels=True

If there is no config file, it will do the default channel order.

tiemes commented 3 years ago

Tanks a lot! We'll test. I only have win and linux but I could probably use a PHZH Mac. @robinhanhart do you have Mac or could verify it on your system?

tiemes commented 3 years ago
db1

@philippReist I'm not able to build. Any thoughts on that?

r-oung commented 3 years ago

FYI. I tested this on Ubuntu and it compiles without error, using:

@tiemes Can you share the CMakeOutput.log and CMakeError.log (see the bottom of your screenshot) with us?

@philippReist If you do a PR of this feature branch to the develop branch, it should initiate the build-test.

philippReist commented 3 years ago

@r-oung: PR and build test is started.

@tiemes: I installed Qt 5.12.9 MSVC 2017 64 bit - so the command for me was cmake -DCMAKE_PREFIX_PATH=C:\Qt\5.12.9\msvc2017_64\ -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 15 2017 Win64" ..

Basically, see what folder/binaries you have in 5.12.9.

You can also check what generators are available on your system with cmake -G. Also, my cmake --version output is 3.16.2.

I will update the instructions when we get it to work.

tiemes commented 3 years ago

@r-oung here are the files. I installed MSVC2017 first but had (the same issue) so I installed 2015 Version but still the same problem. CMakeError.log CMakeOutput.log

philippReist commented 3 years ago

@tiemes Try working in powershell instead of the mingw shell. Just in case the env. that mingw sets up interferes with the VC cmake setup.

tiemes commented 3 years ago

-- Generating done -- Build files have been written to: C:/DanceBotsEditor/build thanks @philippReist & @r-oung

philippReist commented 3 years ago

Nice!

tiemes commented 3 years ago

@philippReist swapping with config.ini worked with my win build. I don't have access to a mac at the time.

philippReist commented 3 years ago

@r-oung: So should I merge develop to master for the 1.1.0 release with this?

r-oung commented 3 years ago

@philippReist Yes, merge develop to master. Then generate a new release and tag it v1.1.0. The backend should auto-generate the macOS DMG and automatically upload it to the release assets (give it some time). I never got the Windows release to work properly so you'll need to upload that one manually. If it doesn't work, I'll look into it.

philippReist commented 3 years ago

Reopened for last steps with release.

@r-oung - the Ubuntu tarball generated for the release looked too small so I deleted it from the release. I created the win deploy zip and added it.

@tiemes - the new release files are here: https://github.com/philippReist/DanceBotsEditor/releases/tag/v1.1.0. Could you please:

philippReist commented 3 years ago

Closing and adding another one for the new improvements requested by Mint&Pepper