Andy Furniss wrote:
Matthias Kronlachner wrote:
what exactly are the problems with the standalone build? as they
are working fine for me under debian.
ambix_binaural_standalone_o5 will segfault when I connect its output
to system playback using qjackctl connections window.
So I finally got to get round this one tonight - though the workaround
is probably sub optimal. I did try others, but jack was in a state from
all the crashing where nothing was working, leading me to falsely think
they were all failing and dismiss them.
I guess that you knowing the code better will want something different,
but at least this prevents the crash for me.
diff --git a/ambix_binaural/Source/SpkConv.cpp
b/ambix_binaural/Source/SpkConv.cpp
index a98ccec..508326f 100644
--- a/ambix_binaural/Source/SpkConv.cpp
+++ b/ambix_binaural/Source/SpkConv.cpp
@@ -289,7 +289,9 @@ void SpkConv::process(AudioSampleBuffer&
InputBuffer, AudioSampleBuffer& OutputB
// copy buffer to output
OutputBuffer.addFrom(0, 0, outdata_l+bcp_out, NumSamples);
- OutputBuffer.addFrom(1, 0, outdata_r+bcp_out, NumSamples);
+
+ if (OutputBuffer.getNumChannels() > 1)
+ OutputBuffer.addFrom(1, 0, outdata_r+bcp_out, NumSamples);
#else
out_buffer.setSize(2,NumSamples,false,false,true);
The problem was that as soon as I made one connection the code behaved
like the output has 2 channels, when it only had one.
A similar fix needed for non ZITA case I expect.
I can get sound, though it's not right as I suppose I need to use
converter to play a wxyz - but converter also crashes, so I'll have to
look at that next.
_______________________________________________
Sursound mailing list
Sursound@music.vt.edu
https://mail.music.vt.edu/mailman/listinfo/sursound