Cycling74 / rnbo.unity.audioplugin

RNBO Adapter for Unity's Native Audio Plugin
MIT License
41 stars 9 forks source link

plugin occasionally becomes unresponsive #16

Open jinpavg opened 1 year ago

jinpavg commented 1 year ago

When switching between some combination of the following:

occasionally, the plugin will no longer respond to incoming MIDI messages.

My test project (shared offline), logs to the console when the Q key, which is meant to play a MIDI note, is pressed, so we can see when the plugin is no longer playing MIDI.

I'm getting this in both Unity 2021 and 2022 versions, on Windows.

jinpavg commented 1 year ago

press Q to play MIDI press T to change param values press Y to store a preset press U to recall original preset press I to recall the new preset

You may also need to start/stop game mode several times to get the plugin to become unresponsive

jinpavg commented 1 year ago

i don't seem to be able to repro this today. if it comes back, i'll try changing from the CapturePresetSync() to CapturePreset()

jinpavg commented 1 year ago

Okay, I can update here -- it doesn't seem to be dependent on Preset functionality at all. I've got a project here during which I am getting audio out of the plugin only ever second time that I start game mode.

https://www.dropbox.com/sh/xxb2eq4nhil9k8l/AACFdCbc18nnUfNQP0-Up6kpa?dl=0

To use this project -- hook up your ps5 controller, use the "X" key to start a recording, the left shoulder (L1) to load the recording into RNBO's buffer, the right shoulder (R1) to playback the recording, and right trigger (R2) to modulate the plugin.

Every other time that I enter game mode, the plugin does not produce audio.

jinpavg commented 1 year ago

Here's the patcher (the audio effects are from the RNBO guitar pedals)

<pre><code> ----------begin_max5_patcher---------- 5669.3oc68z0iaiijOmAX9OPnWRBttcD02ZeZylj4PeXS5fjIyK4FXHKQ6Va jk7JI2cmYwke6WQR8snj7Gxt631X.l3VjpDYUEKVUwhU8e90e4YRyhtmjHg9 anuhd1y9OvSdF6Yzm7r7G7LokN26F3jv5nTH4tnY+KoKxZ6Vm3PmkDVSwgyh 9wWw+YQioj6SKao3wgqWFsNMfjxfnZ9i4OK86qH7QjTh+hPm.oKp9q.+D.j+ Y9636wfOLhtztJ78CyAuR9SW4j5die3howD2T9WvzRYh7EHrkN8ezjo+eE3Q kvmNvukDm3GEx9P3IPyW5QtchtpTMHShyvZ4nsmIM2OfT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Uv62zBMh9Xfy2m439sOBpIkdCnl8hapofUV+W 5DtdtCK+HEW9xu9O9u6RUpreV7qRc73AA4UUhXz7wmzUWm+XAZc0c10trPCT wXOZ9fQPJTSb9aVrX2M4KpH7KprIew7c.pfZ3g20wC2zHQrcLPNMRRaaC1gp PO0bEWGvFmVHH1Mht8BpxTFe8qLsjex6.CGqaqErSabBgmX9qMhDwGSWlmmj kxQtRz7OURlqGpM7n1CUfydio1my6XgngJo8rBDGOclUokRIIkFGmAIVslsn 4nXeXgKqCT7VoolMpUtkaDsdVQKeAnfy8ooapRAWfM1d03iZMWqf0mNkkExR yLfyvy0CqnXe4bm4NWhwDuKso+ogqhlrkCrgoakiYoNorJS2s4N0EDoJTXSq wFu.71Z74tNNF35lVcJTgM.ZJ1uwksrpTzAIlcQO6kjViptNjkDSqc5SUIpa GJsJYmxNTqkpT9ZMTPyqMDaQ1a5uf8h32l9251FHhKXf6pBkfESl280fnOzN +0a0koJxTU8Tzmrz4dJRo86POsV167iWccH4sw92Rd0aib4Uv6W8dm6QVuJm 2IQvqGkvqvv0ZIG+S6QFJ1atwbGMOPaVaU6YJjY5ldy0bAbqliiwL25Nao5V 1ElgHRBGU5l2Tdh0SfihJjsEsJ0eo+eUXbgz0k6pHw7dMs5qOkmZ3pKCY85s gKoiQXwPquAIiqIZt.gAkiP+PgI9uJ8HHJbQAm.Sv5Ww+ojndBjn3zMqq4q9 TEPKX+H6eKL9pYVxjMWZlSLalJLEjAL6IwW1JeWlg0EkcKoWAqe8WfN7+CL2 SR6I -----------end_max5_patcher----------- </code></pre>

jinpavg commented 1 year ago

In this case, we are changing parameter values, loading things into buffers, and playing back