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

Build with PulseAudio support fails on macOS: RtAudio.cpp: error: 'sched_getscheduler' was not declared in this scope #419

Open
barracuda156 opened this issue Jan 20, 2024 · 2 comments

Comments

@barracuda156
Copy link

[ 10%] Building CXX object CMakeFiles/rtaudio.dir/RtAudio.cpp.o
/opt/local/bin/g++-mp-13 -DHAVE_GETTIMEOFDAY -DRTAUDIO_EXPORT -D__LINUX_PULSE__ -D__MACOSX_CORE__ -Drtaudio_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_rtaudio/rtaudio/work/rtaudio-6.0.1 -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -Wall -arch ppc -mmacosx-version-min=10.6 -fPIC -std=c++11 -MD -MT CMakeFiles/rtaudio.dir/RtAudio.cpp.o -MF CMakeFiles/rtaudio.dir/RtAudio.cpp.o.d -o CMakeFiles/rtaudio.dir/RtAudio.cpp.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_rtaudio/rtaudio/work/rtaudio-6.0.1/RtAudio.cpp
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_rtaudio/rtaudio/work/rtaudio-6.0.1/RtAudio.cpp: In function 'void* pulseaudio_callback(void*)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_rtaudio/rtaudio/work/rtaudio-6.0.1/RtAudio.cpp:9360:15: error: 'sched_getscheduler' was not declared in this scope
 9360 |              (sched_getscheduler(0) == SCHED_RR ? "" : "_NOT_ ") <<
      |               ^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/rtaudio.dir/RtAudio.cpp.o] Error 1

There is no error when it is built only with CoreAudio support.

@ntonnaett
Copy link
Contributor

Does PulseAudio work on macOS?

@barracuda156
Copy link
Author

@ntonnaett It does, yes. (I cannot say whether every possible functionality is supported on every macOS version, but it works and is used in other software on Apple.)

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