19 MIDIOutput::MIDIOutput(MIDIPtr protocol,
TTSymbol& application) :
23 mApplication(application)
28 MIDIOutput::~MIDIOutput()
40 const PmDeviceInfo* deviceInfo;
42 PmError err = pmNoError;
44 if (newName != mName) {
47 deviceCount = Pm_CountDevices();
48 for (i = 0; i < deviceCount; i++) {
50 deviceInfo = Pm_GetDeviceInfo(i);
52 if (deviceInfo->output && newName ==
TTSymbol(deviceInfo->name))
68 err = Pm_OpenOutput(&mStream, i, NULL, kMidiBufferSize, NULL, NULL, 0);
71 TTLogError(
"MIDIOutput::setName : can't open the %s device\n", mName.c_str());
81 if (running != mRunning) {
98 done = parser.parse(address, value);
99 int message = Pm_Message(parser.statusByte, parser.dataByte1, parser.dataByte2);
100 Pm_WriteShort(mStream, 0, message);
bool TTBoolean
Boolean flag, same as Boolean on the Mac.
The TTAddress class is used to represent a string and efficiently pass and compare that string...
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
void TTFOUNDATION_EXPORT TTLogError(TTImmutableCString message,...)
Platform and host independent method for posting errors.
Something went wrong, but what exactly is not known. Typically used for context-specific problems...
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
bind to an external device destination
[doxygenAppendixC_copyExample]