c++ - Using RtAudio with Core-Audio, the probeDeviceOpen function fails -
c++ - Using RtAudio with Core-Audio, the probeDeviceOpen function fails -
i trying write c++ programme plays real-time processed audio. have decided utilize rtaudio cannot create test programs play audio.
i using mac os x, compiled ./configure --with-core
, make
. after compiling files in test directory, ran ./audioprobe
homecoming list.
compiled apis: os-x core sound current api: os-x core sound found 3 device(s) ... device name = apple inc.: built-in microphone probe status = successful output channels = 0 input channels = 2 duplex channels = 0 not default output device. not default input device. natively supported info formats: 32-bit float supported sample rates = 44100 48000 88200 96000 device name = apple inc.: built-in input probe status = successful output channels = 0 input channels = 2 duplex channels = 0 not default output device. default input device. natively supported info formats: 32-bit float supported sample rates = 44100 48000 88200 96000 device name = apple inc.: built-in output probe status = successful output channels = 2 input channels = 0 duplex channels = 0 default output device. not default input device. natively supported info formats: 32-bit float supported sample rates = 44100 48000 88200 96000
since built-in output device index 2, ran ./playsaw 2 44100 2
, error occurred:
rtapicore::probedeviceopen: scheme error (kaudiohardwareunknownpropertyerror) getting stream format device (2).
how can fixed?
are on lion (10.7)? seeing same problem, on older systems (10.6.x) rtaudio work fine me.
perhaps can downgrade rtaudio 4.0.6, worked me on lion, there's still bug lurking around device names got fixed in 4.0.8.
c++ audio core-audio
Comments
Post a Comment