|
@ -801,7 +801,6 @@ fail: |
|
|
// Returns true on success. todo currently output only
|
|
|
// Returns true on success. todo currently output only
|
|
|
bool portmidi_find_device_id_by_name(char const* name, Usz namelen, |
|
|
bool portmidi_find_device_id_by_name(char const* name, Usz namelen, |
|
|
PmError* out_pmerror, PmDeviceID* out_id) { |
|
|
PmError* out_pmerror, PmDeviceID* out_id) { |
|
|
fprintf(stderr, "hi there\n"); |
|
|
|
|
|
*out_pmerror = portmidi_init_if_necessary(); |
|
|
*out_pmerror = portmidi_init_if_necessary(); |
|
|
if (*out_pmerror) |
|
|
if (*out_pmerror) |
|
|
return false; |
|
|
return false; |
|
@ -811,7 +810,6 @@ bool portmidi_find_device_id_by_name(char const* name, Usz namelen, |
|
|
if (!info || !info->output) |
|
|
if (!info || !info->output) |
|
|
continue; |
|
|
continue; |
|
|
Usz len = strlen(info->name); |
|
|
Usz len = strlen(info->name); |
|
|
fprintf(stderr, "trying: %s\n", info->name); |
|
|
|
|
|
if (len != namelen) |
|
|
if (len != namelen) |
|
|
continue; |
|
|
continue; |
|
|
if (strncmp(name, info->name, namelen) == 0) { |
|
|
if (strncmp(name, info->name, namelen) == 0) { |
|
|