MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getMessage

Method getMessage

TheForceEngine/TFE_Audio/RtMidi.cpp:711–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709}
710
711double MidiInApi :: getMessage( std::vector<unsigned char> *message )
712{
713 message->clear();
714
715 if ( inputData_.usingCallback ) {
716 errorString_ = "RtMidiIn::getNextMessage: a user callback is currently set for this port.";
717 error( RtMidiError::WARNING, errorString_ );
718 return 0.0;
719 }
720
721 double timeStamp;
722 if ( !inputData_.queue.pop( message, &timeStamp ) )
723 return 0.0;
724
725 return timeStamp;
726}
727
728void MidiInApi :: setBufferSize( unsigned int size, unsigned int count )
729{

Callers

nothing calls this directly

Calls 3

errorFunction · 0.85
popMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected