mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
coreaudio: factor out common code for stuffing MIDI data into a CoreMidiPort buffer
This commit is contained in:
parent
087610dc56
commit
c615e26f3c
2 changed files with 6 additions and 3 deletions
|
|
@ -1343,9 +1343,8 @@ CoreAudioBackend::midi_event_get (
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
CoreAudioBackend::midi_event_put (
|
||||
CoreAudioBackend::_midi_event_put (
|
||||
void* port_buffer,
|
||||
pframes_t timestamp,
|
||||
const uint8_t* buffer, size_t size)
|
||||
|
|
|
|||
|
|
@ -349,7 +349,9 @@ class CoreAudioBackend : public AudioBackend {
|
|||
|
||||
/* MIDI */
|
||||
int midi_event_get (pframes_t& timestamp, size_t& size, uint8_t** buf, void* port_buffer, uint32_t event_index);
|
||||
int midi_event_put (void* port_buffer, pframes_t timestamp, const uint8_t* buffer, size_t size);
|
||||
int midi_event_put (void* port_buffer, pframes_t timestamp, const uint8_t* buffer, size_t size) {
|
||||
return _midi_event_put (port_buffer, timestamp, buffer, size);
|
||||
}
|
||||
|
||||
uint32_t get_midi_event_count (void* port_buffer);
|
||||
void midi_clear (void* port_buffer);
|
||||
|
|
@ -382,6 +384,8 @@ class CoreAudioBackend : public AudioBackend {
|
|||
void pre_process ();
|
||||
void coremidi_rediscover ();
|
||||
|
||||
static int _midi_event_put (void* port_buffer, pframes_t timestamp, const uint8_t* buffer, size_t size);
|
||||
|
||||
private:
|
||||
std::string _instance_name;
|
||||
CoreAudioPCM *_pcmio;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue