SoundScapeRenderer / ssr

Main source code repository for the SoundScape Renderer
http://spatialaudio.net/ssr/
GNU General Public License v3.0
132 stars 52 forks source link

AudioPlayer::Soundfile::soundfile_error #154

Open RarogCmex opened 5 years ago

RarogCmex commented 5 years ago

SSR 0.5 , Gentoo Linux.

terminate called after throwing an instance of 'AudioPlayer::Soundfile::soundfile_error' what(): get_format(): ERROR: Can't connect; chainsetup not valid! Cannot read socket fd = 5 err = Выполнено CheckRes error JackSocketClientChannel read fail terminate called recursively Unable to start Dr. Konqi

RarogCmex commented 5 years ago

That's with any file. SSR being compiled and installed without issues Emerge --info http://dpaste.com/01V5XK1 About libsndfile version http://dpaste.com/1TQZXWN (eix -vvv) Can I add any additional helpful info?

JensAhrens commented 5 years ago

What kind of sound files is it?

JensAhrens commented 5 years ago

... I could also imagine that there is an issue with the path to the file (special characters or paths that are too long or so). Could this be?

RarogCmex commented 5 years ago

Tested with wav and flac files.

... I could also imagine that there is an issue with the path to the file (special characters or paths that are too long or so). Could this be?

Yes, it could, because my native language is Russian so my system uses ru_RU.utf-8 locale. I tested it with paths without any cirrylic symbols but it didn't help so I haven't had any confidence yet.

RarogCmex commented 5 years ago

Example of tested stuff Test_Epidemia_Opus.zip

JensAhrens commented 5 years ago

Sorry for the delay... I tested your file on maxOS and it works well. The only proposition that I have is re-installing libsndfile and ecasound. We've seen problems with ecasound on some systems that could only be solved by compiling ecasound on that system.

Your error sounds similar to this one: https://ssr.readthedocs.io/en/0.5.0/operation.html#ecasound-cannot-open-a-jack-port (there is a solution proposed)

Finally, another issue can be that jack might be running with realtime priority. This can prevent clients without realtime priority from connecting to it.

RarogCmex commented 5 years ago

You're never guilty in the unavoidable :) That's seems strange, because my Gentoo Linux is source-based and I set up that any package with jack support compiled with its (with added USE="jack" in global make.conf). But I'll test Ecasound connections. The issue with realtime jack... I didn't use to see that before, And I didn't think that it's possible.

JensAhrens commented 5 years ago

Please check if ecasound can play your files to jack. The command would be something like

ecasound -i AUDIO_FILE_NAME.FLAC -o jack,system

Make sure you keep the volume low. ;) It'll play with maximum amplitude directly to your audio interface.

RarogCmex commented 5 years ago

Yes, Ecasoud seems working well. I'm hearing my file in ecasound without any distortion `**

JensAhrens commented 5 years ago

Sorry, I have no idea what to do now. The problem occurs here.

Ecasound seems to be having trouble opening the file. I'd suggest that you try to invoke the same ecasound commands on the command line that are being invoked in lines 120-130 and see if that tells you anything...