Lines Matching refs:play

76     MidiPlayer *play = GET_MIDI_PLAYER(device);  in opn2_setDeviceIdentifier()  local
77 assert(play); in opn2_setDeviceIdentifier()
78 play->setDeviceId(static_cast<uint8_t>(id)); in opn2_setDeviceIdentifier()
87 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setNumChips() local
88 assert(play); in opn2_setNumChips()
89 play->m_setup.numChips = static_cast<unsigned int>(numCards); in opn2_setNumChips()
90 if(play->m_setup.numChips < 1 || play->m_setup.numChips > OPN_MAX_CHIPS) in opn2_setNumChips()
92 play->setErrorString("number of chips may only be 1.." OPN_MAX_CHIPS_STR ".\n"); in opn2_setNumChips()
96 Synth &synth = *play->m_synth; in opn2_setNumChips()
99 synth.m_numChips = play->m_setup.numChips; in opn2_setNumChips()
100 play->partialReset(); in opn2_setNumChips()
110 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getNumChips() local
111 assert(play); in opn2_getNumChips()
112 return (int)play->m_setup.numChips; in opn2_getNumChips()
119 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getNumChipsObtained() local
120 assert(play); in opn2_getNumChipsObtained()
121 return (int)play->m_synth->m_numChips; in opn2_getNumChipsObtained()
129 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_reserveBanks() local
130 assert(play); in opn2_reserveBanks()
131 Synth::BankMap &map = play->m_synth->m_insBanks; in opn2_reserveBanks()
146 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getBank() local
147 assert(play); in opn2_getBank()
148 Synth::BankMap &map = play->m_synth->m_insBanks; in opn2_getBank()
199 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_removeBank() local
200 assert(play); in opn2_removeBank()
201 Synth::BankMap &map = play->m_synth->m_insBanks; in opn2_removeBank()
213 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getFirstBank() local
214 assert(play); in opn2_getFirstBank()
215 Synth::BankMap &map = play->m_synth->m_insBanks; in opn2_getFirstBank()
230 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getNextBank() local
231 assert(play); in opn2_getNextBank()
232 Synth::BankMap &map = play->m_synth->m_insBanks; in opn2_getNextBank()
270 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_openBankFile() local
271 assert(play); in opn2_openBankFile()
272 play->m_setup.tick_skip_samples_delay = 0; in opn2_openBankFile()
273 if(!play->LoadBank(filePath)) in opn2_openBankFile()
275 std::string err = play->getErrorString(); in opn2_openBankFile()
277 play->setErrorString("OPN2 MIDI: Can't load file"); in opn2_openBankFile()
291 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_openBankData() local
292 assert(play); in opn2_openBankData()
293 play->m_setup.tick_skip_samples_delay = 0; in opn2_openBankData()
294 if(!play->LoadBank(mem, static_cast<size_t>(size))) in opn2_openBankData()
296 std::string err = play->getErrorString(); in opn2_openBankData()
298 play->setErrorString("OPN2 MIDI: Can't load data from memory"); in opn2_openBankData()
311 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setLfoEnabled() local
312 assert(play); in opn2_setLfoEnabled()
313 Synth &synth = *play->m_synth; in opn2_setLfoEnabled()
314 play->m_setup.lfoEnable = lfoEnable; in opn2_setLfoEnabled()
317 play->m_setup.lfoEnable) != 0; in opn2_setLfoEnabled()
324 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getLfoEnabled() local
325 assert(play); in opn2_getLfoEnabled()
326 return play->m_synth->m_lfoEnable; in opn2_getLfoEnabled()
332 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setLfoFrequency() local
333 assert(play); in opn2_setLfoFrequency()
334 Synth &synth = *play->m_synth; in opn2_setLfoFrequency()
335 play->m_setup.lfoFrequency = lfoFrequency; in opn2_setLfoFrequency()
338 (uint8_t)play->m_setup.lfoFrequency; in opn2_setLfoFrequency()
345 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getLfoFrequency() local
346 assert(play); in opn2_getLfoFrequency()
347 return play->m_synth->m_lfoFrequency; in opn2_getLfoFrequency()
354 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setChipType() local
355 assert(play); in opn2_setChipType()
356 play->m_setup.chipType = chipType; in opn2_setChipType()
357 play->applySetup(); in opn2_setChipType()
364 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getChipType() local
365 assert(play); in opn2_getChipType()
366 return play->m_synth->chipFamily(); in opn2_getChipType()
373 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setScaleModulators() local
374 assert(play); in opn2_setScaleModulators()
375 play->m_setup.ScaleModulators = smod; in opn2_setScaleModulators()
376 play->m_synth->m_scaleModulators = (play->m_setup.ScaleModulators != 0); in opn2_setScaleModulators()
383 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setFullRangeBrightness() local
384 assert(play); in opn2_setFullRangeBrightness()
385 play->m_setup.fullRangeBrightnessCC74 = (fr_brightness != 0); in opn2_setFullRangeBrightness()
393 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setLoopEnabled() local
394 assert(play); in opn2_setLoopEnabled()
395 play->m_sequencer->setLoopEnabled(loopEn != 0); in opn2_setLoopEnabled()
406 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setSoftPanEnabled() local
407 assert(play); in opn2_setSoftPanEnabled()
408 play->m_synth->m_softPanning = (softPanEn != 0); in opn2_setSoftPanEnabled()
416 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setLogarithmicVolumes() local
417 assert(play); in opn2_setLogarithmicVolumes()
418 Synth &synth = *play->m_synth; in opn2_setLogarithmicVolumes()
419 play->m_setup.LogarithmicVolumes = static_cast<unsigned int>(logvol); in opn2_setLogarithmicVolumes()
422 if(play->m_setup.LogarithmicVolumes != 0) in opn2_setLogarithmicVolumes()
425 synth.setVolumeScaleModel(static_cast<OPNMIDI_VolumeModels>(play->m_setup.VolumeModel)); in opn2_setLogarithmicVolumes()
433 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setVolumeRangeModel() local
434 assert(play); in opn2_setVolumeRangeModel()
435 Synth &synth = *play->m_synth; in opn2_setVolumeRangeModel()
436 play->m_setup.VolumeModel = volumeModel; in opn2_setVolumeRangeModel()
439 if(play->m_setup.VolumeModel == OPNMIDI_VolumeModel_AUTO)//Use bank default volume model in opn2_setVolumeRangeModel()
450 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_getVolumeRangeModel() local
451 assert(play); in opn2_getVolumeRangeModel()
452 return play->m_synth->getVolumeScaleModel(); in opn2_getVolumeRangeModel()
459 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_openFile() local
460 assert(play); in opn2_openFile()
462 play->m_setup.tick_skip_samples_delay = 0; in opn2_openFile()
463 if(!play->LoadMIDI(filePath)) in opn2_openFile()
465 std::string err = play->getErrorString(); in opn2_openFile()
467 play->setErrorString("OPN2 MIDI: Can't load file"); in opn2_openFile()
473 play->setErrorString("OPNMIDI: MIDI Sequencer is not supported in this build of library!"); in opn2_openFile()
486 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_openData() local
487 assert(play); in opn2_openData()
489 play->m_setup.tick_skip_samples_delay = 0; in opn2_openData()
490 if(!play->LoadMIDI(mem, static_cast<size_t>(size))) in opn2_openData()
492 std::string err = play->getErrorString(); in opn2_openData()
494 play->setErrorString("OPN2 MIDI: Can't load data from memory"); in opn2_openData()
501 play->setErrorString("OPNMIDI: MIDI Sequencer is not supported in this build of library!"); in opn2_openData()
519 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_chipEmulatorName() local
520 assert(play); in opn2_chipEmulatorName()
521 Synth &synth = *play->m_synth; in opn2_chipEmulatorName()
532 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_switchEmulator() local
533 assert(play); in opn2_switchEmulator()
536 play->m_setup.emulator = emulator; in opn2_switchEmulator()
537 play->partialReset(); in opn2_switchEmulator()
540 play->setErrorString("OPN2 MIDI: Unknown emulation core!"); in opn2_switchEmulator()
550 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setRunAtPcmRate() local
551 assert(play); in opn2_setRunAtPcmRate()
552 Synth &synth = *play->m_synth; in opn2_setRunAtPcmRate()
553 play->m_setup.runAtPcmRate = (enabled != 0); in opn2_setRunAtPcmRate()
555 play->partialReset(); in opn2_setRunAtPcmRate()
585 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_errorInfo() local
586 if(!play) in opn2_errorInfo()
588 return play->getErrorString().c_str(); in opn2_errorInfo()
595 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_close() local
596 assert(play); in opn2_close()
597 delete play; in opn2_close()
607 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_reset() local
608 assert(play); in opn2_reset()
609 play->partialReset(); in opn2_reset()
610 play->resetMIDI(); in opn2_reset()
618 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_totalTimeLength() local
619 assert(play); in opn2_totalTimeLength()
620 return play->m_sequencer->timeLength(); in opn2_totalTimeLength()
632 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_loopStartTime() local
633 assert(play); in opn2_loopStartTime()
634 return play->m_sequencer->getLoopStart(); in opn2_loopStartTime()
646 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_loopEndTime() local
647 assert(play); in opn2_loopEndTime()
648 return play->m_sequencer->getLoopEnd(); in opn2_loopEndTime()
660 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_positionTell() local
661 assert(play); in opn2_positionTell()
662 return play->m_sequencer->tell(); in opn2_positionTell()
676 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_positionSeek() local
677 assert(play); in opn2_positionSeek()
678 play->realTime_panic(); in opn2_positionSeek()
679 play->m_setup.delay = play->m_sequencer->seek(seconds, play->m_setup.mindelay); in opn2_positionSeek()
680 play->m_setup.carry = 0.0; in opn2_positionSeek()
692 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_positionRewind() local
693 assert(play); in opn2_positionRewind()
694 play->realTime_panic(); in opn2_positionRewind()
695 play->m_sequencer->rewind(); in opn2_positionRewind()
706 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setTempo() local
707 assert(play); in opn2_setTempo()
708 play->m_sequencer->setTempo(tempo); in opn2_setTempo()
720 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_describeChannels() local
721 assert(play); in opn2_describeChannels()
722 play->describeChannels(str, attr, size); in opn2_describeChannels()
732 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_metaMusicTitle() local
733 assert(play); in opn2_metaMusicTitle()
734 return play->m_sequencer->getMusicTitle().c_str(); in opn2_metaMusicTitle()
747 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_metaMusicCopyright() local
748 assert(play); in opn2_metaMusicCopyright()
749 return play->m_sequencer->getMusicCopyright().c_str(); in opn2_metaMusicCopyright()
761 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_metaTrackTitleCount() local
762 assert(play); in opn2_metaTrackTitleCount()
763 return play->m_sequencer->getTrackTitles().size(); in opn2_metaTrackTitleCount()
775 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_metaTrackTitle() local
776 assert(play); in opn2_metaTrackTitle()
777 const std::vector<std::string> &titles = play->m_sequencer->getTrackTitles(); in opn2_metaTrackTitle()
794 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_metaMarkerCount() local
795 assert(play); in opn2_metaMarkerCount()
796 return play->m_sequencer->getMarkers().size(); in opn2_metaMarkerCount()
816 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_metaMarker() local
817 assert(play); in opn2_metaMarker()
819 const std::vector<MidiSequencer::MIDI_MarkerEntry> &markers = play->m_sequencer->getMarkers(); in opn2_metaMarker()
846 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setRawEventHook() local
847 assert(play); in opn2_setRawEventHook()
848 play->m_sequencerInterface->onEvent = rawEventHook; in opn2_setRawEventHook()
849 play->m_sequencerInterface->onEvent_userData = userData; in opn2_setRawEventHook()
862 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setNoteHook() local
863 assert(play); in opn2_setNoteHook()
864 play->hooks.onNote = noteHook; in opn2_setNoteHook()
865 play->hooks.onNote_userData = userData; in opn2_setNoteHook()
873 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setDebugMessageHook() local
874 assert(play); in opn2_setDebugMessageHook()
875 play->hooks.onDebugMessage = debugMessageHook; in opn2_setDebugMessageHook()
876 play->hooks.onDebugMessage_userData = userData; in opn2_setDebugMessageHook()
878 play->m_sequencerInterface->onDebugMessage = debugMessageHook; in opn2_setDebugMessageHook()
879 play->m_sequencerInterface->onDebugMessage_userData = userData; in opn2_setDebugMessageHook()
1194 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_tickEvents() local
1195 assert(play); in opn2_tickEvents()
1196 return play->Tick(seconds, granuality); in opn2_tickEvents()
1210 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_atEnd() local
1211 assert(play); in opn2_atEnd()
1212 return (int)play->m_sequencer->positionAtEnd(); in opn2_atEnd()
1224 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_trackCount() local
1225 assert(play); in opn2_trackCount()
1226 return play->m_sequencer->getTrackCount(); in opn2_trackCount()
1238 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_setTrackOptions() local
1239 assert(play); in opn2_setTrackOptions()
1240 MidiSequencer &seq = *play->m_sequencer; in opn2_setTrackOptions()
1278 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_panic() local
1279 assert(play); in opn2_panic()
1280 play->realTime_panic(); in opn2_panic()
1287 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_resetState() local
1288 assert(play); in opn2_rt_resetState()
1289 play->realTime_ResetState(); in opn2_rt_resetState()
1296 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_noteOn() local
1297 assert(play); in opn2_rt_noteOn()
1298 return (int)play->realTime_NoteOn(channel, note, velocity); in opn2_rt_noteOn()
1305 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_noteOff() local
1306 assert(play); in opn2_rt_noteOff()
1307 play->realTime_NoteOff(channel, note); in opn2_rt_noteOff()
1314 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_noteAfterTouch() local
1315 assert(play); in opn2_rt_noteAfterTouch()
1316 play->realTime_NoteAfterTouch(channel, note, atVal); in opn2_rt_noteAfterTouch()
1323 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_channelAfterTouch() local
1324 assert(play); in opn2_rt_channelAfterTouch()
1325 play->realTime_ChannelAfterTouch(channel, atVal); in opn2_rt_channelAfterTouch()
1332 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_controllerChange() local
1333 assert(play); in opn2_rt_controllerChange()
1334 play->realTime_Controller(channel, type, value); in opn2_rt_controllerChange()
1341 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_patchChange() local
1342 assert(play); in opn2_rt_patchChange()
1343 play->realTime_PatchChange(channel, patch); in opn2_rt_patchChange()
1350 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_pitchBend() local
1351 assert(play); in opn2_rt_pitchBend()
1352 play->realTime_PitchBend(channel, pitch); in opn2_rt_pitchBend()
1359 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_pitchBendML() local
1360 assert(play); in opn2_rt_pitchBendML()
1361 play->realTime_PitchBend(channel, msb, lsb); in opn2_rt_pitchBendML()
1368 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_bankChangeLSB() local
1369 assert(play); in opn2_rt_bankChangeLSB()
1370 play->realTime_BankChangeLSB(channel, lsb); in opn2_rt_bankChangeLSB()
1377 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_bankChangeMSB() local
1378 assert(play); in opn2_rt_bankChangeMSB()
1379 play->realTime_BankChangeMSB(channel, msb); in opn2_rt_bankChangeMSB()
1386 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_bankChange() local
1387 assert(play); in opn2_rt_bankChange()
1388 play->realTime_BankChange(channel, (uint16_t)bank); in opn2_rt_bankChange()
1395 MidiPlayer *play = GET_MIDI_PLAYER(device); in opn2_rt_systemExclusive() local
1396 assert(play); in opn2_rt_systemExclusive()
1397 return play->realTime_SysEx(msg, size); in opn2_rt_systemExclusive()