diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2013-10-11 14:49:10 +0200 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 14:49:10 +0200 |
| commit | 71b723e4cb7a1b641b5214306e56a1bca5b1b98c (patch) | |
| tree | 98830b2353d96dd99d449c0f34afa961c643a63d /RtMidi.h | |
| parent | ca0e6a91d0c68ad51c8945f7b1c3a06274e90339 (diff) | |
Version 1.0.3
Diffstat (limited to 'RtMidi.h')
| -rw-r--r-- | RtMidi.h | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -35,7 +35,7 @@ */ /**********************************************************************/ -// RtMidi: Version 1.0.2, 21 September 2004 +// RtMidi: Version 1.0.3, 22 November 2004 #ifndef RTMIDI_H #define RTMIDI_H @@ -45,10 +45,26 @@ class RtMidi { + public: + + //! Pure virtual openPort() function. + virtual void openPort( unsigned int portNumber = 0 ) = 0; + + //! Pure virtual openVirtualPort() function. + virtual void openVirtualPort() = 0; + + //! Pure virtual getPortCount() function. + virtual unsigned int getPortCount() = 0; + + //! Pure virtual getPortName() function. + virtual std::string getPortName( unsigned int portNumber = 0 ) = 0; + + //! Pure virtual closePort() function. + virtual void closePort( void ) = 0; + protected: RtMidi(); - virtual ~RtMidi() {}; // A basic error reporting function for internal use in the RtMidi @@ -56,8 +72,6 @@ class RtMidi // suit specific needs. void error( RtError::Type type ); - virtual void openPort( unsigned int portNumber = 0 ) = 0; - void *apiData_; bool connected_; std::string errorString_; |
