sofacoustics / SOFAlizer-for-VLC-Player

12 stars 1 forks source link

Correct vlc version to compile SOFAlizer with? Sample HRTF? #1

Open vanne02135 opened 9 years ago

vanne02135 commented 9 years ago

Hi there,

I tried a few vlc revisions (from github and tarballs) while compiling the SOFAlizer plugin. Finally got it compiled with vlc version 2.2.0 with a couple of minor tweaks in configure.ac and extended_panels.hpp.

Is there a specific version of vlc I should target?

First tests with HRTFs from http://sofacoustics.org/data/database/ failed:

[00007f9a20031fa8] sofalizer audio filter error: Couldn't read SourcePosition.
[00007f9a20031fa8] sofalizer audio filter error: Error while loading SOFA file 1:      '/tmp/qu_kemar_anechoic_0.5m.sofa'

I believe this is a SOFA version mismatch? Where could I find fresh sofa version of e.g. KEMAR?

vanne02135 commented 9 years ago

I upgraded the abovementioned file with Matlab API but get the same error even though SourcePosition can be viewed in Matlab workspace

>> kemar05.SourcePosition
ans =
   1.0e+02 *

   1.800000000000000                   0   0.005000000000000
   1.810000000000000                   0   0.005000000000000
   1.820000000000000                   0   0.005000000000000
   1.830000000000000                   0   0.005000000000000
   1.840000000000000                   0   0.005000000000000
vanne02135 commented 9 years ago

To be more specific, reading SourcePosition azimuths returns NC_EEDGE and reading elevation and radii both return NC_EINVALCOORDS.

whra commented 9 years ago

Hi Antti,

Thanks for your interest in SOFAlizer!

sofalizer ist not intended for a specific version of VLC. It works with 2.x and also 3.x. Currently, the development is paused. The last version of VLC known to work with sofalizer is from June 2015.

As for your problem with the KEMAR HRTF file: Did you try any other HRTF file? I suggest trying one of the files from the ARI database.

Good luck! Wolfgang

Am 17.09.2015 um 11:19 schrieb Antti notifications@github.com:

Hi there,

I tried a few vlc revisions (from github and tarballs) while compiling the SOFAlizer plugin. Finally got it compiled with vlc version 2.2.0 with a couple of minor tweaks in configure.ac and extended_panels.hpp.

Is there a specific version of vlc I should target?

First tests with HRTFs from http://sofacoustics.org/data/database/ failed:

[00007f9a20031fa8] sofalizer audio filter error: Couldn't read SourcePosition. [00007f9a20031fa8] sofalizer audio filter error: Error while loading SOFA file 1: '/tmp/qu_kemar_anechoic_0.5m.sofa' I believe this is a SOFA version mismatch? Where could I find fresh sofa version of e.g. KEMAR?

— Reply to this email directly or view it on GitHub.

vanne02135 commented 8 years ago

I got this sorted out. My compiler (g++ 4.9.2) did not like the temporary arrays in nc_get_vara_float() when reading SourcePosition, so I had to rewrite

nc_get_vara_float (i_ncid, i_sp_id, (uint32_t[2]){ 0 , 0 } , (uint32_t[2]){ i_m_dim , 1 } , p_sp_a ); 

as

long unsigned int start[2], count[2]; 
start[0] = 0; start[1] = 0; 
count[0] = i_m_dim; count[1] = 1; 
nc_get_vara_float (i_ncid, i_sp_id, start , count , p_sp_a );