Skip to content

AudioPlayer: Initialization of soundfile failed! (audioplayer.cpp:88) #239

@brandflake11

Description

@brandflake11

Hello ssr team,
I have been trying to get sound out of ssr on Artix Linux, and it seems no matter what audio file I try to load into it, it doesn't load. Here is the output and command I am using to try to get audio out of ssr:
ssr-binaural ~/Music/Test_Epidemia_Opus.flac -s /usr/share/ssr/reproduction_setups/2.0.asd --hrirs=/usr/share/ssr/impulse_responses/hrirs/hrirs_fabian.wav

Jack: JackClient::SetupDriverSync driver sem in flush mode
Jack: JackLinuxFutex::Connect name = jack_sem.1000_default_BinauralRenderer
Jack: Clock source : system clock via clock_gettime
Jack: JackLibClient::Open name = BinauralRenderer refnum = 6
       ___     
      /  ___   
  ___/  /  ___ 
    ___/  /    SSR (SoundScape Renderer) brandon202102251400
         /     
               
Website: <http://spatialaudio.net/ssr/>
Contact: <ssr@spatialaudio.net>

Copyright © 2016 Division of Applied Acoustics, Chalmers University of Technology
Copyright © 2014 Institut für Nachrichtentechnik, Universität Rostock
Copyright © 2012 Quality & Usability Lab, Telekom Innovation Laboratories, TU Berlin

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Jack: JackClient::PortRegister ref = 6 name = BinauralRenderer:out_1 type = 32 bit float mono audio port_index = 17
Jack: JackClient::Connect src = BinauralRenderer:out_1 dst = system:playback_1
Jack: JackClient::PortRegister ref = 6 name = BinauralRenderer:out_2 type = 32 bit float mono audio port_index = 18
Jack: JackClient::Connect src = BinauralRenderer:out_2 dst = system:playback_2
Warning: Trying to open specified file as audio file. (controller.h:983)

***********************************************************************
* Message from libecasoundc:
* 
* 'ECASOUND' environment variable not set. Using the default value 
* value 'ECASOUND=ecasound'.
***********************************************************************

Warning: Creating spontaneous scene from the audio file "/home/brandon/Music/test41k.wav". (controller.h:1016)

***********************************************************************
* Message from libecasoundc:
* 
* 'ECASOUND' environment variable not set. Using the default value 
* value 'ECASOUND=ecasound'.
***********************************************************************


***********************************************************************
* Message from libecasoundc:
* 
* 'ECASOUND' environment variable not set. Using the default value 
* value 'ECASOUND=ecasound'.
***********************************************************************


***********************************************************************
* Message from libecasoundc:
* 
* 'ECASOUND' environment variable not set. Using the default value 
* value 'ECASOUND=ecasound'.
***********************************************************************

Jack: JackClient::ClientNotify ref = 7 name = ecasound-ctrl-22027 notify = 0
Jack: JackClient::AddClient name = ecasound-ctrl-22027, ref = 7 
Jack: JackLinuxFutex::Connect name = jack_sem.1000_default_ecasound-ctrl-22027
Jack: JackClient::ClientNotify ref = 7 name = ecasound-ctrl-22027 notify = 1
Jack: JackClient::RemoveClient name = ecasound-ctrl-22027, ref = 7 

(ecasoundc_sa) Error='read() error', cmd='cs-connect' last_error='' cmd_cnt=6 last_cnt=5.

***********************************************************************
* Message from libecasoundc:
* 
* Connection to the processing engine was lost. Check that ecasound 
* is correctly installed. Also make sure that ecasound is either 
* in some directory listed in PATH, or the environment variable
* 'ECASOUND' contains the path to a working ecasound executable.
***********************************************************************

Jack: JackClient::ClientNotify ref = 7 name = ecasound notify = 0
Jack: JackClient::AddClient name = ecasound, ref = 7 
Jack: JackLinuxFutex::Connect name = jack_sem.1000_default_ecasound
Jack: JackClient::ClientNotify ref = 7 name = ecasound notify = 1
Jack: JackClient::RemoveClient name = ecasound, ref = 7 
Error: _get_jack_sample_rate():  (audioplayer.cpp:312)
Warning: AudioPlayer: Initialization of soundfile '/home/brandon/Music/test41k.wav' failed! (audioplayer.cpp:88)
Jack: JackClient::PortRegister ref = 6 name = BinauralRenderer:in_1 type = 32 bit float mono audio port_index = 19

***********************************************************************
* Message from libecasoundc:
* 
* 'ECASOUND' environment variable not set. Using the default value 
* value 'ECASOUND=ecasound'.
***********************************************************************


***********************************************************************
* Message from libecasoundc:
* 
* 'ECASOUND' environment variable not set. Using the default value 
* value 'ECASOUND=ecasound'.
***********************************************************************


***********************************************************************
* Message from libecasoundc:
* 
* 'ECASOUND' environment variable not set. Using the default value 
* value 'ECASOUND=ecasound'.
***********************************************************************

Jack: JackClient::ClientNotify ref = 7 name = ecasound-ctrl-22041 notify = 0
Jack: JackClient::AddClient name = ecasound-ctrl-22041, ref = 7 
Jack: JackLinuxFutex::Connect name = jack_sem.1000_default_ecasound-ctrl-22041
Jack: JackClient::ClientNotify ref = 7 name = ecasound-ctrl-22041 notify = 1
Jack: JackClient::RemoveClient name = ecasound-ctrl-22041, ref = 7 

(ecasoundc_sa) Error='read() error', cmd='cs-connect' last_error='' cmd_cnt=6 last_cnt=5.

***********************************************************************
* Message from libecasoundc:
* 
* Connection to the processing engine was lost. Check that ecasound 
* is correctly installed. Also make sure that ecasound is either 
* in some directory listed in PATH, or the environment variable
* 'ECASOUND' contains the path to a working ecasound executable.
***********************************************************************

Jack: JackClient::ClientNotify ref = 7 name = ecasound notify = 0
Jack: JackClient::AddClient name = ecasound, ref = 7 
Jack: JackLinuxFutex::Connect name = jack_sem.1000_default_ecasound
Jack: JackClient::ClientNotify ref = 7 name = ecasound notify = 1
Jack: JackClient::RemoveClient name = ecasound, ref = 7 
Error: _get_jack_sample_rate():  (audioplayer.cpp:312)
Warning: AudioPlayer: Initialization of soundfile '/home/brandon/Music/test41k.wav' failed! (audioplayer.cpp:88)
Jack: JackClient::PortRegister ref = 6 name = BinauralRenderer:in_2 type = 32 bit float mono audio port_index = 20
Jack: JackClient::TransportLocate pos = 0
Jack: RequestNewPos pos = 0
Jack: JackClient::Activate
Jack: JackPosixThread::StartImp : create non RT thread
Jack: JackPosixThread::ThreadHandler : start
Jack: JackClient::kBufferSizeCallback buffer_size = 1024
Jack: JackClient::Init : period = 23219 computation = 100 constraint = 23219
Jack: JackPosixThread::AcquireRealTimeImp priority = 5
Jack: JackClient::ClientNotify ref = 6 name = BinauralRenderer notify = 2
Jack: JackClient::kActivateClient name = BinauralRenderer ref = 6 
Jack: JackClient::Connect src = BinauralRenderer:out_2 dst = system:playback_2
Jack: JackClient::ClientNotify ref = 6 name = BinauralRenderer notify = 18
Jack: JackClient::ClientNotify ref = 6 name = BinauralRenderer notify = 18
Jack: JackClient::Connect src = BinauralRenderer:out_1 dst = system:playback_1
Warning: Renderer is already processing. (controller.h:1275)
Jack: JackClient::TransportLocate pos = 0
Jack: RequestNewPos pos = 0
Jack: JackClient::ClientNotify ref = 6 name = BinauralRenderer notify = 18
Jack: JackClient::ClientNotify ref = 6 name = BinauralRenderer notify = 18
QApplication: invalid style override 'gtk' passed, ignoring it.
	Available styles: Breeze, bb10dark, bb10bright, cleanlooks, gtk2, cde, motif, plastique, Windows, Fusion
Fontconfig error: "/etc/fonts/local.conf", line 7: invalid attribute 'mode'
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
Jack: JackClient::Deactivate
Jack: JackClient::Deactivate res = 0
Jack: JackPosixThread::Kill
Jack: JackClient::Deactivate
Jack: JackClient::PortUnRegister port_index = 19
Jack: JackClient::PortUnRegister port_index = 20
Jack: JackClient::PortUnRegister port_index = 17
Jack: JackClient::PortUnRegister port_index = 18

I've tried a couple of different sound files, making sure that I'm matching sample rates, and the wave file is the right format, since the manual talks about certain issues with ecasound and the wave files. Each one was the right format (WAVE_FORMAT_PCM). I tried doing the sox conversion as well and that didn't help with this error.

I have also built and installed ecasound and ssr from source from the official Arch Linux PKGBUILDs to see if compiling on my machine would make a difference. This didn't help either.

What could I be doing wrong?

Thank you very much for your help with this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions