digimezzo / dopamine-windows

Audio player which tries to make organizing and listening to music as simple and pretty as possible.
https://digimezzo.github.io/site/
GNU General Public License v3.0
1.84k stars 260 forks source link

Dopamine doesn't play audio on 32 bit systems #673

Closed Mirlu-exe closed 6 years ago

Mirlu-exe commented 6 years ago

I'm submitting a...


[ ] Regression 
[x ] Bug report  
[ ] Feature request

I'm using these versions

Reproduction steps

Observed behavior

It stops working.

Desired behavior

To play songs normally without crashing

dopamine has stopped working

Log file

Dopamine.log

I tried with all the older versions, and they stop working as soon as I try to play a song. Thanks for your hard work!.

shoker537 commented 6 years ago

I agree, I have the same bug.

digimezzo commented 6 years ago

@shoker537 also on Windows Home Premium? Could you attach your log file?

Also, is it a 32 or 64 bit version of Windows?

shoker537 commented 6 years ago

@digimezzo Windows 7 Professional x32, Windows 10 Pro x32. .Net is installed on 10 and was installed on 7. Older versions don't work too. When I open a song directly (via "open using -> Dopamine"), it still crashing.

shoker537 commented 6 years ago

Log: Dopamine.log

digimezzo commented 6 years ago

The issue is reproducible here. However I need input from the CSCore (the audio lib used in Dopamine) developer before being able to provide a fix. There seems to be a problem using the FFMpeg decoder on 32 bit systems. This is the issue that I logged on the CSCore GitHub: https://github.com/filoe/cscore/issues/331

shoker537 commented 6 years ago

@digimezzo OK, good luck!

digimezzo commented 6 years ago

I can't figure out, for now, why FFMpegDecoder fails on 32 bit systems. It would be great if someone could assist on this. See CSCore bug: https://github.com/filoe/cscore/issues/331

shoker537 commented 6 years ago

@digimezzo Hey, sorry, I can't solve a problem :( But I'll try to help you. Can you use libs that AIMP uses? I don't have any problems with it or if you'll find another decoder to use it will be awesome. Or you can try to use DEV builds of libs...

digimezzo commented 6 years ago

@shoker537 I had a look at those a while ago. I think AIMP uses BASS lirary. However, I think it is not free.

shoker537 commented 6 years ago

@digimezzo Even so, there must be another free decoder. I don't think FFMpeg is the only stable music decoder...

digimezzo commented 6 years ago

@shoker537 Unfortunately not. There aren't many free audio decoders for .NET. Those I know, don't support as many audio formats as CSCore. I this issue is not revolved, my only resort is to revert back to CSCore without FFMpeg. This would fix the 32 bit issue, but support for the Ape and Opus audio formats will be lost :(

shoker537 commented 6 years ago

@digimezzo Ohhhhhh... Of corse. I need opus... But if changing .opus to .mp3 will make this working without opus support... Just for now it should be reverted back to CSCore without FFMpeg...

digimezzo commented 6 years ago

An idea that I had a few years ago, before using CSCore: use Gstreamer. Banshee audio player has successfully done this in WIndows. I didn't succeed back then. But it's worth having a look at. See: https://github.com/digimezzo/Dopamine/issues/697

digimezzo commented 6 years ago

@shoker537 and @Mirla-exe, I have resolved the issue, but I need you to test it out too.

Could you download the file Dopamine 1.5.11.0 - Portable TEST.zip from https://www.digimezzo.com/content/software/dopamine/? It is a portable version of Dopamine, meaning that it won't interfere with your currently installed Dopamine and it won't interfere with your existing collection. Please unzip this file, and in the unzipped folder, double click Dopamine.exe. Please try to add a collection folder and try to play the audio files.

Let me know if it now works. Thank you.

shoker537 commented 6 years ago

@digimezzo It's working. But I don't think it must be like this: image And I sent you email via your site. Thanks. UPD: I think It was when player was importing my songs... Now % is not high.

shoker537 commented 6 years ago

@digimezzo .opus is working too, but only song progress not working image

digimezzo commented 6 years ago

@shoker537 Could you send me the file that doesn't show progress? The Opus files I have here show progress fine here.

shoker537 commented 6 years ago

@digimezzo every opus I have - about 350 files (song collection). Ok, one of them: https://yadi.sk/d/yFwDs1XL3TcJ2M MPC-HC opens it fine.

shoker537 commented 6 years ago

@digimezzo and the player don't see .opus files when I add a folder with .opus songs, it plays them only when I drop .opus file to dopamine.exe (in not portable version it would be like "open with Dopamine" in context menu)

digimezzo commented 6 years ago

@shoker537 hmm, the file header cannot be read by taglib. It tries to find tags but that format is not supported (it seems it's a webm file). Also, this file seems to have no tags at all. I have to brainstorm how to handle that, as currently I refuse to import fiels where tags cannot be read.

shoker537 commented 6 years ago

@digimezzo Okay, maybe that is because I downloaded this files from youtube videos like audio files (using "savefrom"). This can be a reason - no need to solve it, this is yt...

digimezzo commented 6 years ago

@shoker537 You can use Vitomu for that purpose: https://www.digimezzo.com/software/. It creates valid audio files.

shoker537 commented 6 years ago

@digimezzo I'll try :D Thanks. What can you say about my email?

digimezzo commented 6 years ago

@shoker537 Lot's of good ideas. I replied :) Thanks.