Skip to content

Commit

Permalink
fix: Fix python binding
Browse files Browse the repository at this point in the history
  • Loading branch information
DawningW committed Apr 22, 2024
1 parent 2e08c88 commit 51e8285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding/python/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void py_callback(int event, void* data, void* user_data) {
g_callbacks[(crp_handle) user_data](event, obj);
} else if (event == CRP_EV_NEW_AUDIO) {
Frame* frame = (Frame*) data;
py::object frame = py::dict();
py::object obj = py::dict();
obj["sample_rate"] = frame->sample_rate;
obj["channels"] = frame->channels;
obj["format"] = frame->format;
Expand Down

0 comments on commit 51e8285

Please sign in to comment.