Skip to content

Impossible to prevent error messages in RtAudio constructor. #473

@eclectocrat

Description

@eclectocrat

I am getting an error during the construction of RtAudio:

RtApiCore::probeDeviceInfo: system error (CoreAudio unknown error) getting sample rate info.

I am passing an error handler to the constructor which should handle the error but in the constructor of RtAudio (

openRtApi( api );
) the openRtApi() function is called, and then if successful, we set the error callback.

I think you might have to forward the error handler into openRtApi() and each API's constructor to avoid this.

Right now the only workaround I have is to redirect stderr at a system level during construction of RtAudio, or else to use terminal commands to save the cursor location before construction and then after construction to reset the cursor and clear the error message, although this gives a brief flash of the error text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions