mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
use obs_data_t* in Event function
This commit is contained in:
@ -1516,7 +1516,7 @@ void WSEvents::OnStudioModeSwitched(bool checked) {
|
|||||||
* @category general
|
* @category general
|
||||||
* @since 4.7.0
|
* @since 4.7.0
|
||||||
*/
|
*/
|
||||||
void WSEvents::OnBroadcastCustomMessage(QString realm, OBSDataAutoRelease data) {
|
void WSEvents::OnBroadcastCustomMessage(QString realm, obs_data_t* data) {
|
||||||
OBSDataAutoRelease broadcastData = obs_data_create();
|
OBSDataAutoRelease broadcastData = obs_data_create();
|
||||||
obs_data_set_string(broadcastData, "realm", realm.toUtf8().constData());
|
obs_data_set_string(broadcastData, "realm", realm.toUtf8().constData());
|
||||||
obs_data_set_obj(broadcastData, "data", data);
|
obs_data_set_obj(broadcastData, "data", data);
|
||||||
|
@ -49,7 +49,7 @@ public:
|
|||||||
const char* GetRecordingTimecode();
|
const char* GetRecordingTimecode();
|
||||||
obs_data_t* GetStats();
|
obs_data_t* GetStats();
|
||||||
|
|
||||||
void OnBroadcastCustomMessage(QString realm, OBSDataAutoRelease data);
|
void OnBroadcastCustomMessage(QString realm, obs_data_t* data);
|
||||||
|
|
||||||
bool HeartbeatIsActive;
|
bool HeartbeatIsActive;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user