Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liangxt2012 opened this issue Mar 6, 2024 · 4 comments
Open

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

liangxt2012 opened this issue Mar 6, 2024 · 4 comments

Comments

@liangxt2012
Copy link

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
Copy link
Owner

BrerDawg commented Mar 6, 2024

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
Copy link
Author

liangxt2012 commented Mar 7, 2024

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 BrerDawg closed this as completed Mar 7, 2024
@BrerDawg BrerDawg reopened this Mar 7, 2024
@BrerDawg
Copy link
Owner

BrerDawg commented Mar 7, 2024

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
Copy link
Owner

BrerDawg commented Mar 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants