Fixed RFspace client on MacOS

This commit is contained in:
AlexandreRouma 2022-01-01 05:54:23 +01:00 committed by GitHub
parent efecd14281
commit 7cc06b7a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ namespace rfspace {
}
void RFspaceClientClass::start(SampleFormat sampleFormat, SampleDepth sampleDepth) {
uint8_t args[4] = { sampleFormat, RFSPACE_STATE_RUN, sampleDepth, 0 };
uint8_t args[4] = { (uint8_t)sampleFormat, (uint8_t)RFSPACE_STATE_RUN, (uint8_t)sampleDepth, 0 };
setControlItem(RFSPACE_CTRL_ITEM_STATE, args, sizeof(args));
}
@ -224,4 +224,4 @@ namespace rfspace {
if (!udpConn) { return NULL; }
return RFspaceClient(new RFspaceClientClass(std::move(conn), std::move(udpConn), out));
}
}
}