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

Ambiant music not working on Windows 10 #78

Open
chapellu opened this issue Feb 25, 2018 · 15 comments
Open

Ambiant music not working on Windows 10 #78

chapellu opened this issue Feb 25, 2018 · 15 comments

Comments

@chapellu
Copy link

#Your configuration:
Rolisteam version:
Operating System and version (remove irrelevant):

  • Windows 10

Rolisteam Setting (remove irrelevant):

  • GM and Server

#What did you do ? (Explain each step from starting rolisteam to the issue)

  • Started Rolisteam as MJ and Host
  • Openned ambiant music
  • Added file (.mp3) to the list
  • Tried to play the file

#What did you expect to see ? (Make sentences and explains in details with words)

  • The song playing
  • Or a complete error?

#What did you get instead ? (Describe in details the issue)

  • Just a message "Error : file:///F:/JDR/Rolisteam/Rolisteam/audio/Two.flac"
  • Tried the same steps with another computer and same issue

image

@obiwankennedy
Copy link
Member

Rolisteam on windows is using microsoft windows media player as backend. So you need to install codecs on your computer. When microsoft windows media player will be able to play flac file on your computer. Rolisteam will do as well.

@chapellu
Copy link
Author

chapellu commented Feb 26, 2018

Hey thanks for your quick answer my windows is able to read flac and I have the same issue with other extension as MP3...
image
The thing that bother me is the fact that '/' are used as in Linux and not the '\' of Windows
I checked in my audio directory I have the qtaudio_windows.dll which I suppose is the one handling this change ?

@obiwankennedy
Copy link
Member

obiwankennedy commented Feb 26, 2018

The / is the default separator in Qt : http://doc.qt.io/qt-5/qdir.html#separator
The dll you mention is just the dll which provides a way to communicate with the rest of windows API.

You may be able to read flac with some softwares if they have their own codecs.
In preferences, you may find a panel called "diagnostic" (the last panel). If you run a diagnostic it will show you the full list of supported audio file.

please install that : https://xiph.org/dshow/ and tell me if it is solved the issue.

@chapellu
Copy link
Author

Oki that's good to know I'm not used to Qt ^^

image
The flac is supported that's why I tested it but that still doesn't help me ^^
image
Even with other extension I have the same issue and I tested on another computer and I have the same result

The only way I succeded in playing music yet is with TabletopAudio.

@obiwankennedy
Copy link
Member

How do you open the file ? drag and drop or by the menu ?

@chapellu
Copy link
Author

I tried both and neither are working

@obiwankennedy
Copy link
Member

obiwankennedy commented Feb 26, 2018

given this code : m_ui->m_label->setText(Error.arg(m_player.errorString()).arg(m_player.currentMedia().canonicalUrl().toString()));
The error is displayed with the reason.

As you can see, there is no reason in the error display. It is very strange.

__

On the first exemple you have rolisteam twice in the path. But three times in the second example.
Is it normal ? Does the path exist ?

@chapellu
Copy link
Author

chapellu commented Feb 26, 2018

That's why I'm here looking for help ^^
If you have don't have any idea that's alright I'll do without the ambiant music


Yeah I redownload it and put it in the same folder that's why there is a third Rolisteam ^^. Just to see if it was coming from my version

@obiwankennedy
Copy link
Member

I ask around and people on windows 10 are able to read flac files.

So, it is probably on your side.
Did you try to put the music in another directory ? to prevent missing permissions or weird filesystem stuff (such as symbolic link equivalent on windows)

@chapellu
Copy link
Author

chapellu commented Feb 27, 2018

Okey I think it's coming from the size of the music I can't exceed 2.8mo of music

@obiwankennedy
Copy link
Member

obiwankennedy commented Feb 27, 2018

There is a way to send me any one problematic file ? Perhaps tools on Linux will be able to tell me what is wrong with those files and I will test on other windows 10, to know if It can be read elsewhere.

@chapellu
Copy link
Author

chapellu commented Feb 28, 2018

Here some files "A new Age is working" is not "when it all falls down" is.
"Skywold" is not working but the cut version is.
https://www.dropbox.com/sh/f2ddo72o16vs0xz/AAA4MXfASM7mLETXEuCmo-oca?dl=0

@obiwankennedy
Copy link
Member

In fact, this bug may be a dupplicate of #35

I did not test songs yet. But I will do on this week end.

@obiwankennedy
Copy link
Member

Did you try to remove any weird character in your filename (such as space, parenthesis, and so on).
Rolisteam is written in C++/Qt and it manages all text in UTF-8 but on windows filename may have some over charset. There are some solution to prevent that but I did not implement then in Rolisteam.

@obiwankennedy
Copy link
Member

obiwankennedy commented Mar 4, 2018

Ok I installed the mega package from that website http://www.codecguide.com/download_kl.htm and I was able to play all your files.

It is reported as a Qt bug : https://bugreports.qt.io/browse/QTBUG-51692

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

2 participants