Sequencer: Cover up bug in gcc-4.8.

This commit is contained in:
Jonathan Moore Liles 2013-06-26 17:17:11 -07:00
parent 03fcf31311
commit f68232ab5c
3 changed files with 8 additions and 8 deletions

View File

@ -74,8 +74,8 @@ namespace MIDI
void deselect ( void ); void deselect ( void );
bool selected ( int n ) const; bool selected ( int n ) const;
bool selected ( void ) const; bool selected ( void ) const;
void note ( char note ); virtual void note ( char note );
unsigned char note ( void ) const; virtual unsigned char note ( void ) const;
tick_t note_duration ( void ) const; tick_t note_duration ( void ) const;
void note_duration ( tick_t l ); void note_duration ( tick_t l );

View File

@ -99,6 +99,12 @@ namespace MIDI
_data.msb = vel & 0x7F; _data.msb = vel & 0x7F;
} }
unsigned char
midievent::note ( void ) const
{
return _data.lsb;
}
void void
midievent::note ( char note ) midievent::note ( char note )
{ {

View File

@ -222,12 +222,6 @@ namespace MIDI
return (opcode() == NOTE_OFF); return (opcode() == NOTE_OFF);
} }
inline unsigned char
midievent::note ( void ) const
{
return _data.lsb;
}
inline bool inline bool
midievent::operator< ( const midievent &rhs ) const midievent::operator< ( const midievent &rhs ) const
{ {