#include <process.h>
Inheritance diagram for jdkmidi::MIDIMultiProcessor:
Public Member Functions | |
MIDIMultiProcessor (int num_processors) | |
virtual | ~MIDIMultiProcessor () |
void | SetProcessor (int position, MIDIProcessor *proc) |
MIDIProcessor * | GetProcessor (int position) |
const MIDIProcessor * | GetProcessor (int position) const |
virtual bool | Process (MIDITimedBigMessage *msg) |
Private Attributes | |
MIDIProcessor ** | processors |
int | num_processors |
|
Definition at line 42 of file jdkmidi_process.cpp. References num_processors, and processors.
00043 : 00044 processors( new MIDIProcessor *[num] ), 00045 num_processors( num ) 00046 { 00047 for( int i=0; i<num_processors; ++i ) 00048 { 00049 processors[i] = 0; 00050 } 00051 } |
|
Definition at line 53 of file jdkmidi_process.cpp. References processors.
00054 { 00055 delete [] processors; 00056 } |
|
Definition at line 66 of file process.h. References processors.
00067 { 00068 return processors[position]; 00069 } |
|
Definition at line 61 of file process.h. References processors.
00062 { 00063 return processors[position]; 00064 } |
|
Implements jdkmidi::MIDIProcessor. Definition at line 60 of file jdkmidi_process.cpp. References num_processors, jdkmidi::MIDIProcessor::Process(), and processors.
00061 { 00062 for( int i=0; i<num_processors; ++i ) 00063 { 00064 if( processors[i] ) 00065 { 00066 if( processors[i]->Process( msg )==false ) 00067 { 00068 return false; 00069 } 00070 } 00071 00072 } 00073 00074 return true; 00075 } |
|
Definition at line 56 of file process.h. References processors.
00057 { 00058 processors[position]=proc; 00059 } |
|
|
|
|