BrerDawg / hrir_cmdline

3D audio demo app for linux, uses a HRIR sofa file and produces realtime audio, allows you to position audio sources in 3D space.
0 stars 1 forks source link

error: ‘RtAudioError’ does not name a type #1

Open liangxt2012 opened 6 months ago

liangxt2012 commented 6 months ago

hi, there is a mistake when i compile gc_rtaudio.cpp file " catch ( RtAudioError &e ) " , error: ‘RtAudioError’ does not name a type I can't find where ‘RtAudioError’ is defined ?

BrerDawg commented 6 months ago

It should be defined in 'RtAudio.h'

Try this on cmdline to see where your RTAudio library package is: pkg-config --cflags

If your RTAudio library in not in '/usr/local/include/rtaudio', you could add to Makefile like this:

INCLUDE= -I/usr/local/include -I/home/you/API_Cpp-master/libsofa/dependencies/include/ -I/home/you/API_Cpp-master/libsofa/src/ pkg-config --cflags rtaudio

I've edited the Makefile also.

liangxt2012 commented 6 months ago

thanks for your reply could you provide the position where ‘RtAudioError’ is defined? I just see a type "RtAudioErrorType"?

I have temporarily blocked the error mechanism and occured another question:There is no sound card on the server, Can you give me the method of outputting the output audio ?

BrerDawg commented 6 months ago

From your edited reply, it compiles ok now, but RTAudio can't find an audio card. Are you able to confirm RTAudio works with your hardware ? It should be able to work with either alsa, pulseaudio or jack setups ?

BrerDawg commented 6 months ago

The compile problem you were having may be due to RTAudio versioning, have moded 2 files to suit RTAudio v6.01, Let us know if it compiles now ? It won't fix any hardware issues though.