Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderVocke committed Aug 15, 2023
1 parent 4270fec commit 968e1bf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/libshoopdaloop/libshoopdaloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ void dummy_midi_port_clear_queues(shoopdaloop_midi_port_t* port) {
void dummy_audio_port_request_data(shoopdaloop_audio_port_t* port, size_t n_frames) {
init_log();
g_logger->debug("dummy_audio_port_request_data");
auto maybe_dummy = std::dynamic_pointer_cast<DummyMidiPort>(internal_audio_port(port)->maybe_audio());
auto maybe_dummy = std::dynamic_pointer_cast<DummyAudioPort>(internal_audio_port(port)->maybe_audio());
if (maybe_dummy) {
maybe_dummy->request_data(n_frames);
} else {
Expand Down
6 changes: 3 additions & 3 deletions src/shoopdaloop/lib/backend_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,13 @@ def open_jack_midi_port(self, name_hint : str, direction : int) -> 'BackendMidiP
return port

def get_fx_chain_audio_input_port(self, fx_chain : Type['BackendFXChain'], idx : int):
return fx_chain_audio_input_port(fx_chain.c_handle(), idx)
return BackendAudioPort(fx_chain_audio_input_port(fx_chain.c_handle(), idx), PortDirection.Output)

def get_fx_chain_audio_output_port(self, fx_chain : Type['BackendFXChain'], idx : int):
return fx_chain_audio_output_port(fx_chain.c_handle(), idx)
return BackendAudioPort(fx_chain_audio_output_port(fx_chain.c_handle(), idx), PortDirection.Input)

def get_fx_chain_midi_input_port(self, fx_chain : Type['BackendFXChain'], idx : int):
return fx_chain_midi_input_port(fx_chain.c_handle(), idx)
return BackendMidiPort(fx_chain_midi_input_port(fx_chain.c_handle(), idx), PortDirection.Output)

def get_sample_rate(self):
return int(get_sample_rate(self._c_handle))
Expand Down
2 changes: 1 addition & 1 deletion src/shoopdaloop/lib/qml/test/ShoopTestCase.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ TestCase {
if (Array.isArray(a) && Array.isArray(b)) {
return TestDeepEqual.testArraysCompare(a, b, compare);
} else if (TestDeepEqual.isObject(a) && TestDeepEqual.isObject(b)) {
return TestDeepEqual.testDeepEqual(a, b);
return a == b || TestDeepEqual.testDeepEqual(a, b);
} else {
return a == b;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shoopdaloop/lib/qml/test/tst_TrackControl_drywet.qml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Session {
RegistryLookup {
id: lookup_midi_input_port
registry: session.objects_registry
key: "tut_direct_dry_in"
key: "tut_dry_midi_in"
}
property alias midi_input_port: lookup_midi_input_port.object

Expand Down

0 comments on commit 968e1bf

Please sign in to comment.