c++ - Callback for connected/unconnected device using portaudio? -
is there callback know when device list updated?
if not, there way of detecting ( ideally cross platform )?
at moment way found re-initialise portaudio.
ps: tried find "callbacks" documentation on portaudio documentation failed find it.
is there callback know when device list updated?
not in main line code. there branch supporting functionality on platforms. new contributors welcome out finish this. much-needed feature.
note device list never updated between calls pa_initialize()
, pa_terminate()
. basic invariant of api. branch supports refresh
call.
the way current version use platform-specific checks, call pa_terminate();pa_initialize();
suggest.
Comments
Post a Comment