Lines Matching refs:play

79     MIDIplay * play = reinterpret_cast<MIDIplay *>(device->adl_midiPlayer);  in adl_close()  local
80 if(play) in adl_close()
81 delete play; in adl_close()
88 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setCallback() local
89 if(play) { in adl_setCallback()
90 MidiSequencer &seq = play->m_sequencer; in adl_setCallback()
99 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setDeviceIdentifier() local
100 if(!play) in adl_setDeviceIdentifier()
102 play->setDeviceId(static_cast<uint8_t>(id)); in adl_setDeviceIdentifier()
111 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setNumChips() local
114 play->m_setup.numChips = 1; in adl_setNumChips()
116 play->m_setup.numChips = static_cast<unsigned int>(numChips); in adl_setNumChips()
118 if(play->m_setup.numChips < 1 || play->m_setup.numChips > MaxChips) in adl_setNumChips()
120 play->setErrorString("number of chips may only be 1.." MaxChips_STR ".\n"); in adl_setNumChips()
124 play->m_synth.m_numChips = play->m_setup.numChips; in adl_setNumChips()
134 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_getNumChips() local
135 if(play) in adl_getNumChips()
136 return (int)play->m_setup.numChips; in adl_getNumChips()
144 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setBank() local
145 play->setErrorString("This build of libADLMIDI has no embedded banks. " in adl_setBank()
156 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setBank()
161 play->setErrorString(errBuf); in adl_setBank()
165 play->m_setup.bankId = static_cast<uint32_t>(bankno); in adl_setBank()
166 play->m_synth.setEmbeddedBank(play->m_setup.bankId); in adl_setBank()
167 play->applySetup(); in adl_setBank()
195 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_reserveBanks() local
196 OPL3::BankMap &map = play->m_synth.m_insBanks; in adl_reserveBanks()
211 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_getBank() local
212 OPL3::BankMap &map = play->m_synth.m_insBanks; in adl_getBank()
263 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_removeBank() local
264 OPL3::BankMap &map = play->m_synth.m_insBanks; in adl_removeBank()
276 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_getFirstBank() local
277 OPL3::BankMap &map = play->m_synth.m_insBanks; in adl_getFirstBank()
292 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_getNextBank() local
293 OPL3::BankMap &map = play->m_synth.m_insBanks; in adl_getNextBank()
331 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_loadEmbeddedBank() local
332 if (!play) in adl_loadEmbeddedBank()
338 play->setErrorString("This build of libADLMIDI has no embedded banks. " in adl_loadEmbeddedBank()
362 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setNumFourOpsChn() local
363 if((unsigned int)ops4 > 6 * play->m_setup.numChips) in adl_setNumFourOpsChn()
366 …els may only be 0..%u when %u OPL3 cards are used.\n", (6 * (play->m_setup.numChips)), play->m_set… in adl_setNumFourOpsChn()
367 play->setErrorString(errBuff); in adl_setNumFourOpsChn()
371 play->m_setup.numFourOps = static_cast<unsigned int>(ops4); in adl_setNumFourOpsChn()
372 play->m_synth.m_numFourOps = play->m_setup.numFourOps; in adl_setNumFourOpsChn()
373 play->m_synth.updateChannelCategories(); in adl_setNumFourOpsChn()
382 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_getNumFourOpsChn() local
383 if(play) in adl_getNumFourOpsChn()
384 return (int)play->m_setup.numFourOps; in adl_getNumFourOpsChn()
391 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setPercMode() local
392 play->m_setup.rhythmMode = percmod; in adl_setPercMode()
393 play->m_synth.m_rhythmMode = play->m_setup.rhythmMode < 0 ? in adl_setPercMode()
394 (play->m_synth.m_insBankSetup.adLibPercussions) : in adl_setPercMode()
395 (play->m_setup.rhythmMode != 0); in adl_setPercMode()
396 play->m_synth.updateChannelCategories(); in adl_setPercMode()
402 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setHVibrato() local
403 play->m_setup.deepVibratoMode = hvibro; in adl_setHVibrato()
404 play->m_synth.m_deepVibratoMode = play->m_setup.deepVibratoMode < 0 ? in adl_setHVibrato()
405 play->m_synth.m_insBankSetup.deepVibrato : in adl_setHVibrato()
406 (play->m_setup.deepVibratoMode != 0); in adl_setHVibrato()
407 play->m_synth.commitDeepFlags(); in adl_setHVibrato()
413 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setHTremolo() local
414 play->m_setup.deepTremoloMode = htremo; in adl_setHTremolo()
415 play->m_synth.m_deepTremoloMode = play->m_setup.deepTremoloMode < 0 ? in adl_setHTremolo()
416 play->m_synth.m_insBankSetup.deepTremolo : in adl_setHTremolo()
417 (play->m_setup.deepTremoloMode != 0); in adl_setHTremolo()
418 play->m_synth.commitDeepFlags(); in adl_setHTremolo()
425 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setScaleModulators() local
426 if(!play) in adl_setScaleModulators()
428 play->m_setup.scaleModulators = smod; in adl_setScaleModulators()
429 play->m_synth.m_scaleModulators = play->m_setup.scaleModulators < 0 ? in adl_setScaleModulators()
430 play->m_synth.m_insBankSetup.scaleModulators : in adl_setScaleModulators()
431 (play->m_setup.scaleModulators != 0); in adl_setScaleModulators()
438 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setFullRangeBrightness() local
439 if(!play) in adl_setFullRangeBrightness()
441 play->m_setup.fullRangeBrightnessCC74 = (fr_brightness != 0); in adl_setFullRangeBrightness()
448 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setLoopEnabled() local
449 if(!play) in adl_setLoopEnabled()
452 play->m_sequencer.setLoopEnabled(loopEn != 0); in adl_setLoopEnabled()
463 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setLogarithmicVolumes() local
464 if(!play) in adl_setLogarithmicVolumes()
466 play->m_setup.logarithmicVolumes = (logvol != 0); in adl_setLogarithmicVolumes()
467 if(play->m_setup.logarithmicVolumes) in adl_setLogarithmicVolumes()
468 play->m_synth.setVolumeScaleModel(ADLMIDI_VolumeModel_NativeOPL3); in adl_setLogarithmicVolumes()
470play->m_synth.setVolumeScaleModel(static_cast<ADLMIDI_VolumeModels>(play->m_synth.m_volumeScale)); in adl_setLogarithmicVolumes()
477 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setVolumeRangeModel() local
478 if(!play) in adl_setVolumeRangeModel()
480 play->m_setup.volumeScaleModel = volumeModel; in adl_setVolumeRangeModel()
481 if(play->m_setup.volumeScaleModel == ADLMIDI_VolumeModel_AUTO)//Use bank default volume model in adl_setVolumeRangeModel()
482 play->m_synth.m_volumeScale = (OPL3::VolumesScale)play->m_synth.m_insBankSetup.volumeModel; in adl_setVolumeRangeModel()
484 play->m_synth.setVolumeScaleModel(static_cast<ADLMIDI_VolumeModels>(volumeModel)); in adl_setVolumeRangeModel()
491 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_openBankFile() local
492 play->m_setup.tick_skip_samples_delay = 0; in adl_openBankFile()
493 if(!play->LoadBank(filePath)) in adl_openBankFile()
495 std::string err = play->getErrorString(); in adl_openBankFile()
497 play->setErrorString("ADL MIDI: Can't load file"); in adl_openBankFile()
511 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_openBankData() local
512 if(!play) in adl_openBankData()
514 play->m_setup.tick_skip_samples_delay = 0; in adl_openBankData()
515 if(!play->LoadBank(mem, static_cast<size_t>(size))) in adl_openBankData()
517 std::string err = play->getErrorString(); in adl_openBankData()
519 play->setErrorString("ADL MIDI: Can't load data from memory"); in adl_openBankData()
533 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_openFile() local
534 if(!play) in adl_openFile()
537 play->m_setup.tick_skip_samples_delay = 0; in adl_openFile()
538 if(!play->LoadMIDI(filePath)) in adl_openFile()
540 std::string err = play->getErrorString(); in adl_openFile()
542 play->setErrorString("ADL MIDI: Can't load file"); in adl_openFile()
548 play->setErrorString("ADLMIDI: MIDI Sequencer is not supported in this build of library!"); in adl_openFile()
561 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_openData() local
562 if(!play) in adl_openData()
565 play->m_setup.tick_skip_samples_delay = 0; in adl_openData()
566 if(!play->LoadMIDI(mem, static_cast<size_t>(size))) in adl_openData()
568 std::string err = play->getErrorString(); in adl_openData()
570 play->setErrorString("ADL MIDI: Can't load data from memory"); in adl_openData()
577 play->setErrorString("ADLMIDI: MIDI Sequencer is not supported in this build of library!"); in adl_openData()
596 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_chipEmulatorName() local
597 if(play && !play->m_synth.m_chips.empty()) in adl_chipEmulatorName()
598 return play->m_synth.m_chips[0]->emulatorName(); in adl_chipEmulatorName()
610 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_switchEmulator() local
611 assert(play); in adl_switchEmulator()
612 if(!play) in adl_switchEmulator()
616 play->m_setup.emulator = emulator; in adl_switchEmulator()
620 play->setErrorString("OPL3 MIDI: Unknown emulation core!"); in adl_switchEmulator()
630 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setRunAtPcmRate() local
631 if(play) in adl_setRunAtPcmRate()
633 play->m_setup.runAtPcmRate = (enabled != 0); in adl_setRunAtPcmRate()
665 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_errorInfo() local
666 if(!play) in adl_errorInfo()
668 return play->getErrorString().c_str(); in adl_errorInfo()
680 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_reset() local
681 play->m_setup.tick_skip_samples_delay = 0; in adl_reset()
682 play->m_synth.m_runAtPcmRate = play->m_setup.runAtPcmRate; in adl_reset()
683 play->m_synth.reset(play->m_setup.emulator, play->m_setup.PCM_RATE, play); in adl_reset()
684 play->m_chipChannels.clear(); in adl_reset()
685 play->m_chipChannels.resize((size_t)play->m_synth.m_numChannels); in adl_reset()
686 play->resetMIDI(); in adl_reset()
694 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_totalTimeLength() local
695 if(!play) in adl_totalTimeLength()
697 return play->m_sequencer.timeLength(); in adl_totalTimeLength()
709 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_loopStartTime() local
710 if(!play) in adl_loopStartTime()
712 return play->m_sequencer.getLoopStart(); in adl_loopStartTime()
724 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_loopEndTime() local
725 if(!play) in adl_loopEndTime()
727 return play->m_sequencer.getLoopEnd(); in adl_loopEndTime()
739 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_positionTell() local
740 if(!play) in adl_positionTell()
742 return play->m_sequencer.tell(); in adl_positionTell()
756 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_positionSeek() local
757 if(!play) in adl_positionSeek()
759 play->realTime_panic(); in adl_positionSeek()
760 play->m_setup.delay = play->m_sequencer.seek(seconds, play->m_setup.mindelay); in adl_positionSeek()
761 play->m_setup.carry = 0.0; in adl_positionSeek()
773 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_positionRewind() local
774 if(!play) in adl_positionRewind()
776 play->realTime_panic(); in adl_positionRewind()
777 play->m_sequencer.rewind(); in adl_positionRewind()
788 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setTempo() local
789 if(!play) in adl_setTempo()
791 play->m_sequencer.setTempo(tempo); in adl_setTempo()
803 MIDIplay *play = reinterpret_cast<MIDIplay *>(device->adl_midiPlayer); in adl_describeChannels() local
804 if(!play) in adl_describeChannels()
806 play->describeChannels(str, attr, size); in adl_describeChannels()
816 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_metaMusicTitle() local
817 if(!play) in adl_metaMusicTitle()
819 return play->m_sequencer.getMusicTitle().c_str(); in adl_metaMusicTitle()
832 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_metaMusicCopyright() local
833 if(!play) in adl_metaMusicCopyright()
835 return play->m_sequencer.getMusicCopyright().c_str(); in adl_metaMusicCopyright()
847 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_metaTrackTitleCount() local
848 if(!play) in adl_metaTrackTitleCount()
850 return play->m_sequencer.getTrackTitles().size(); in adl_metaTrackTitleCount()
862 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_metaTrackTitle() local
863 const std::vector<std::string> &titles = play->m_sequencer.getTrackTitles(); in adl_metaTrackTitle()
880 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_metaMarkerCount() local
881 if(!play) in adl_metaMarkerCount()
883 return play->m_sequencer.getMarkers().size(); in adl_metaMarkerCount()
894 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_metaMarker() local
895 const std::vector<MidiSequencer::MIDI_MarkerEntry> &markers = play->m_sequencer.getMarkers(); in adl_metaMarker()
896 if(!device || !play || (index >= markers.size())) in adl_metaMarker()
925 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setRawEventHook() local
926 play->m_sequencerInterface.onEvent = rawEventHook; in adl_setRawEventHook()
927 play->m_sequencerInterface.onEvent_userData = userData; in adl_setRawEventHook()
940 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setNoteHook() local
941 play->hooks.onNote = noteHook; in adl_setNoteHook()
942 play->hooks.onNote_userData = userData; in adl_setNoteHook()
950 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setDebugMessageHook() local
951 play->hooks.onDebugMessage = debugMessageHook; in adl_setDebugMessageHook()
952 play->hooks.onDebugMessage_userData = userData; in adl_setDebugMessageHook()
954 play->m_sequencerInterface.onDebugMessage = debugMessageHook; in adl_setDebugMessageHook()
955 play->m_sequencerInterface.onDebugMessage_userData = userData; in adl_setDebugMessageHook()
1340 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_tickEvents() local
1341 if(!play) in adl_tickEvents()
1343 return play->Tick(seconds, granulality); in adl_tickEvents()
1357 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_atEnd() local
1358 if(!play) in adl_atEnd()
1360 return (int)play->m_sequencer.positionAtEnd(); in adl_atEnd()
1372 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_trackCount() local
1373 if(!play) in adl_trackCount()
1375 return play->m_sequencer.getTrackCount(); in adl_trackCount()
1387 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_setTrackOptions() local
1388 if(!play) in adl_setTrackOptions()
1390 MidiSequencer &seq = play->m_sequencer; in adl_setTrackOptions()
1428 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_panic() local
1429 if(!play) in adl_panic()
1431 play->realTime_panic(); in adl_panic()
1438 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_resetState() local
1439 if(!play) in adl_rt_resetState()
1441 play->realTime_ResetState(); in adl_rt_resetState()
1448 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_noteOn() local
1449 if(!play) in adl_rt_noteOn()
1451 return (int)play->realTime_NoteOn(channel, note, velocity); in adl_rt_noteOn()
1458 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_noteOff() local
1459 if(!play) in adl_rt_noteOff()
1461 play->realTime_NoteOff(channel, note); in adl_rt_noteOff()
1468 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_noteAfterTouch() local
1469 if(!play) in adl_rt_noteAfterTouch()
1471 play->realTime_NoteAfterTouch(channel, note, atVal); in adl_rt_noteAfterTouch()
1478 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_channelAfterTouch() local
1479 if(!play) in adl_rt_channelAfterTouch()
1481 play->realTime_ChannelAfterTouch(channel, atVal); in adl_rt_channelAfterTouch()
1488 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_controllerChange() local
1489 if(!play) in adl_rt_controllerChange()
1491 play->realTime_Controller(channel, type, value); in adl_rt_controllerChange()
1498 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_patchChange() local
1499 if(!play) in adl_rt_patchChange()
1501 play->realTime_PatchChange(channel, patch); in adl_rt_patchChange()
1508 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_pitchBend() local
1509 if(!play) in adl_rt_pitchBend()
1511 play->realTime_PitchBend(channel, pitch); in adl_rt_pitchBend()
1518 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_pitchBendML() local
1519 if(!play) in adl_rt_pitchBendML()
1521 play->realTime_PitchBend(channel, msb, lsb); in adl_rt_pitchBendML()
1528 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_bankChangeLSB() local
1529 if(!play) in adl_rt_bankChangeLSB()
1531 play->realTime_BankChangeLSB(channel, lsb); in adl_rt_bankChangeLSB()
1538 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_bankChangeMSB() local
1539 if(!play) in adl_rt_bankChangeMSB()
1541 play->realTime_BankChangeMSB(channel, msb); in adl_rt_bankChangeMSB()
1548 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_bankChange() local
1549 if(!play) in adl_rt_bankChange()
1551 play->realTime_BankChange(channel, (uint16_t)bank); in adl_rt_bankChange()
1558 MidiPlayer *play = GET_MIDI_PLAYER(device); in adl_rt_systemExclusive() local
1559 if(!play) in adl_rt_systemExclusive()
1561 return play->realTime_SysEx(msg, size); in adl_rt_systemExclusive()