Wohlstand / libOPNMIDI

A Software MIDI Synthesizer library with OPN2 (YM2612) emulator
GNU Lesser General Public License v3.0
96 stars 6 forks source link

check for null on self-assignment + test #21

Closed jpcima closed 6 years ago

jpcima commented 6 years ago

Fixes bug mentioned in #18

Adds the unit test. But it will only detect in Debug mode (without -DNDEBUG).

Wohlstand commented 6 years ago

Works on desktop and all unit tests are passing, gotta to test that on a phone...

Wohlstand commented 6 years ago

IT WORKS! :fox_face: Finally! :laughing: I even have tried to use one chip to run arpeggio thing, and it works too! :fox_face: One thing it won't work on emulator (can't play OpenSL-ES sound), but perfectly works on real phone :thinking: