def METHOD_NAME(self, input_data, frame_count, time_info, status):
    global playing
    got = adl.adl_play(self._opl, int(MidiPlayer.BUFFER_SAMPLE_COUNT * 2), cast(self._data, POINTER(c_short)));
    if got <= 0:
        playing = False
        return None, pyaudio.paComplete
    return self._data, pyaudio.paContinue