55 snd_seq_query_subscribe_malloc(&m_Info);
64 snd_seq_query_subscribe_malloc(&m_Info);
65 snd_seq_query_subscribe_copy(m_Info, other.m_Info);
74 snd_seq_query_subscribe_malloc(&m_Info);
75 snd_seq_query_subscribe_copy(m_Info, other);
83 snd_seq_query_subscribe_free(m_Info);
102 snd_seq_query_subscribe_copy(m_Info, other.m_Info);
113 return snd_seq_query_subscribe_get_client(m_Info);
123 return snd_seq_query_subscribe_get_port(m_Info);
130 const snd_seq_addr_t*
133 return snd_seq_query_subscribe_get_root(m_Info);
144 snd_seq_query_subs_type_t
147 return snd_seq_query_subscribe_get_type(m_Info);
157 return snd_seq_query_subscribe_get_index(m_Info);
167 return snd_seq_query_subscribe_get_num_subs(m_Info);
174 const snd_seq_addr_t*
177 return snd_seq_query_subscribe_get_addr(m_Info);
187 return snd_seq_query_subscribe_get_queue(m_Info);
197 return (snd_seq_query_subscribe_get_exclusive(m_Info) != 0);
207 return (snd_seq_query_subscribe_get_time_update(m_Info) != 0);
217 return (snd_seq_query_subscribe_get_time_real(m_Info) != 0);
227 snd_seq_query_subscribe_set_client(m_Info, client);
237 snd_seq_query_subscribe_set_port(m_Info, port);
247 snd_seq_query_subscribe_set_root(m_Info, addr);
261 snd_seq_query_subscribe_set_type(m_Info, type);
271 snd_seq_query_subscribe_set_index(m_Info, index);
281 return snd_seq_query_subscribe_sizeof();
289 snd_seq_port_subscribe_malloc(&m_Info);
298 snd_seq_port_subscribe_malloc(&m_Info);
299 snd_seq_port_subscribe_copy(m_Info, other.m_Info);
308 snd_seq_port_subscribe_malloc(&m_Info);
309 snd_seq_port_subscribe_copy(m_Info, other);
318 snd_seq_port_subscribe_malloc(&m_Info);
328 snd_seq_port_subscribe_free(m_Info);
349 snd_seq_port_subscribe_copy(m_Info, other.m_Info);
357 const snd_seq_addr_t*
360 return snd_seq_port_subscribe_get_sender(m_Info);
367 const snd_seq_addr_t*
370 return snd_seq_port_subscribe_get_dest(m_Info);
380 return snd_seq_port_subscribe_get_queue(m_Info);
390 return (snd_seq_port_subscribe_get_exclusive(m_Info) != 0);
400 return (snd_seq_port_subscribe_get_time_update(m_Info) != 0);
410 return (snd_seq_port_subscribe_get_time_real(m_Info) != 0);
420 snd_seq_port_subscribe_set_sender(m_Info, addr);
430 snd_seq_port_subscribe_set_dest(m_Info, addr);
440 snd_seq_port_subscribe_set_queue(m_Info, q);
450 snd_seq_port_subscribe_set_exclusive(m_Info, val?1:0);
460 snd_seq_port_subscribe_set_time_update(m_Info, val?1:0);
470 snd_seq_port_subscribe_set_time_real(m_Info, val?1:0);
482 addr.client = client;
496 addr.client = client;
510 if ((m_Info == NULL) || (seq == NULL) || !(seq->
isOpened()))
526 if ((m_Info == NULL) || (seq == NULL) || !(seq->
isOpened()))
540 return snd_seq_port_subscribe_sizeof();
const snd_seq_addr_t * getRoot()
Gets the subscriber's root address.
Subscriber * clone()
Copy the current object.
bool getTimeUpdate()
Gets the susbcriber's time-update flag.
const snd_seq_addr_t * getAddr()
Gets the subscriber's address.
Classes managing ALSA Sequencer clients.
void setQueue(int queue)
Sets the Subscription's Queue number.
bool getTimeUpdate()
Gets the susbcription's time-update flag.
bool isOpened()
Returns true if the sequencer is opened.
snd_seq_query_subs_type_t getType()
Gets the subscription type (read or write).
void setTimeUpdate(bool val)
Sets the susbcription's time-update flag.
const snd_seq_addr_t * getSender()
Gets the sender address of the subscription (MIDI OUT port)
int getQueue()
Gets the subscriber's queue number.
Subscription & operator=(const Subscription &other)
Assignment operator.
Subscription * clone()
Copy the current object.
int getSizeOfInfo() const
Gets the size of the ALSA query subscriber object.
snd_seq_t * getHandle()
Returns the sequencer handler managed by ALSA.
bool getExclusive()
Gets the subscriber's exclusive flag.
void unsubscribe(MidiClient *seq)
Breaks the subscription in the ALSA sequencer subsystem.
Subscriber()
Default constructor.
void setTimeReal(bool val)
Sets the subscription's time real (time-stamping) flag.
bool getTimeReal()
Gets the subscriber's time real time-stamp flag.
Subscriber & operator=(const Subscriber &other)
Assignment operator.
void setIndex(int index)
Sets the index of the subscriber.
void subscribe(MidiClient *seq)
Performs the subscription in the ALSA sequencer subsystem.
Subscription()
Default constructor.
virtual ~Subscription()
Destructor.
void setClient(int client)
Sets the subscriber's client number.
void setRoot(snd_seq_addr_t *addr)
Sets the subscriber's root address.
int getSizeOfInfo() const
Gets the size of the ALSA subscription object.
bool getTimeReal()
Gets the susbcription's time-real (time-stamping) flag.
const snd_seq_addr_t * getDest()
Gets the destination address of the subscription (MIDI IN port)
int getNumSubs()
Gets the number of subscribers returned by a query operation.
void setType(snd_seq_query_subs_type_t type)
Sets the subscription type.
void setDest(unsigned char client, unsigned char port)
Sets the Subscription's destination (MIDI IN) port.
void setSender(unsigned char client, unsigned char port)
Sets the Subscription's sender (MIDI OUT) port.
void setExclusive(bool val)
Sets the subscription's exclusive flag.
bool getExclusive()
Gets the subscription's exclusive flag.
#define CHECK_WARNING(x)
This macro calls the check warning function.
virtual ~Subscriber()
Destructor.
Subscriber container class.
int getQueue()
Gets the susbcription's queue number.
int getClient()
Gets the subscriber's client number.
int getPort()
Gets the subscriober's port number.
int getIndex()
Gets the index of the subscriber container.
void setPort(int port)
Sets the subscriber's port number.