summaryrefslogtreecommitdiff
path: root/libs/backends/coreaudio/coreaudio_backend.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-07 04:15:02 +0100
committerRobin Gareus <robin@gareus.org>2015-03-07 14:35:32 +0100
commitce3adfd3d4c1a9e346ed9ecdc9e605346f483f98 (patch)
tree13d482217db123247046713aaed3d897a1790262 /libs/backends/coreaudio/coreaudio_backend.h
parente99599c7db97d6a02e4fb261b91b12eb88599057 (diff)
Hard Core Audio
* allow to change buffersizes * subscribe to buffersize & samplerate changes * add support for half-duplex devices. * aggregate Devices (not yet used) code from JACK2 * unify deprecated API wrappers * properly keep track of MIDI ports * disable MidiI/O during freewheeling * various small fixes & cleanup
Diffstat (limited to 'libs/backends/coreaudio/coreaudio_backend.h')
-rw-r--r--libs/backends/coreaudio/coreaudio_backend.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libs/backends/coreaudio/coreaudio_backend.h b/libs/backends/coreaudio/coreaudio_backend.h
index 715c067efc..cfdf20625f 100644
--- a/libs/backends/coreaudio/coreaudio_backend.h
+++ b/libs/backends/coreaudio/coreaudio_backend.h
@@ -215,6 +215,8 @@ class CoreAudioBackend : public AudioBackend {
int process_callback();
void error_callback();
void xrun_callback();
+ void buffer_size_callback();
+ void sample_rate_callback();
void hw_changed_callback();
protected:
@@ -376,7 +378,6 @@ class CoreAudioBackend : public AudioBackend {
/* port engine */
PortHandle add_port (const std::string& shortname, ARDOUR::DataType, ARDOUR::PortFlags);
int register_system_audio_ports ();
- int register_system_midi_ports ();
void unregister_ports (bool system_only = false);
std::vector<CoreBackendPort *> _ports;
@@ -423,6 +424,15 @@ class CoreAudioBackend : public AudioBackend {
return NULL;
}
+ CoreBackendPort * find_port_in (std::vector<CoreBackendPort *> plist, const std::string& port_name) const {
+ for (std::vector<CoreBackendPort*>::const_iterator it = plist.begin (); it != plist.end (); ++it) {
+ if ((*it)->name () == port_name) {
+ return *it;
+ }
+ }
+ return NULL;
+ }
+
}; // class CoreAudioBackend
} // namespace