| 709 | } |
| 710 | |
| 711 | double 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 | |
| 728 | void MidiInApi :: setBufferSize( unsigned int size, unsigned int count ) |
| 729 | { |