54 snd_seq_query_subscribe_malloc(&m_Info);
63 snd_seq_query_subscribe_malloc(&m_Info);
64 snd_seq_query_subscribe_copy(m_Info, other.m_Info);
73 snd_seq_query_subscribe_malloc(&m_Info);
74 snd_seq_query_subscribe_copy(m_Info, other);
82 snd_seq_query_subscribe_free(m_Info);
101 snd_seq_query_subscribe_copy(m_Info, other.m_Info);
112 return snd_seq_query_subscribe_get_client(m_Info);
122 return snd_seq_query_subscribe_get_port(m_Info);
132 return snd_seq_query_subscribe_get_root(m_Info);
143snd_seq_query_subs_type_t
146 return snd_seq_query_subscribe_get_type(m_Info);
156 return snd_seq_query_subscribe_get_index(m_Info);
166 return snd_seq_query_subscribe_get_num_subs(m_Info);
176 return snd_seq_query_subscribe_get_addr(m_Info);
186 return snd_seq_query_subscribe_get_queue(m_Info);
196 return (snd_seq_query_subscribe_get_exclusive(m_Info) != 0);
206 return (snd_seq_query_subscribe_get_time_update(m_Info) != 0);
216 return (snd_seq_query_subscribe_get_time_real(m_Info) != 0);
226 snd_seq_query_subscribe_set_client(m_Info, client);
236 snd_seq_query_subscribe_set_port(m_Info, port);
246 snd_seq_query_subscribe_set_root(m_Info, addr);
260 snd_seq_query_subscribe_set_type(m_Info, type);
270 snd_seq_query_subscribe_set_index(m_Info, index);
280 return snd_seq_query_subscribe_sizeof();
288 snd_seq_port_subscribe_malloc(&m_Info);
297 snd_seq_port_subscribe_malloc(&m_Info);
298 snd_seq_port_subscribe_copy(m_Info, other.m_Info);
307 snd_seq_port_subscribe_malloc(&m_Info);
308 snd_seq_port_subscribe_copy(m_Info, other);
317 snd_seq_port_subscribe_malloc(&m_Info);
327 snd_seq_port_subscribe_free(m_Info);
348 snd_seq_port_subscribe_copy(m_Info, other.m_Info);
359 return snd_seq_port_subscribe_get_sender(m_Info);
369 return snd_seq_port_subscribe_get_dest(m_Info);
379 return snd_seq_port_subscribe_get_queue(m_Info);
389 return (snd_seq_port_subscribe_get_exclusive(m_Info) != 0);
399 return (snd_seq_port_subscribe_get_time_update(m_Info) != 0);
409 return (snd_seq_port_subscribe_get_time_real(m_Info) != 0);
419 snd_seq_port_subscribe_set_sender(m_Info, addr);
429 snd_seq_port_subscribe_set_dest(m_Info, addr);
439 snd_seq_port_subscribe_set_queue(m_Info, q);
449 snd_seq_port_subscribe_set_exclusive(m_Info, val?1:0);
459 snd_seq_port_subscribe_set_time_update(m_Info, val?1:0);
469 snd_seq_port_subscribe_set_time_real(m_Info, val?1:0);
481 addr.client = client;
495 addr.client = client;
509 if ((m_Info == NULL) || (seq == NULL) || !(seq->
isOpened()))
525 if ((m_Info == NULL) || (seq == NULL) || !(seq->
isOpened()))
539 return snd_seq_port_subscribe_sizeof();
Classes managing ALSA Sequencer clients.
snd_seq_t * getHandle()
Returns the sequencer handler managed by ALSA.
bool isOpened()
Returns true if the sequencer is opened.
Subscriber container class.
Subscriber()
Default constructor.
Subscriber & operator=(const Subscriber &other)
Assignment operator.
int getSizeOfInfo() const
Gets the size of the ALSA query subscriber object.
const snd_seq_addr_t * getRoot()
Gets the subscriber's root address.
void setType(snd_seq_query_subs_type_t type)
Sets the subscription type.
bool getExclusive()
Gets the subscriber's exclusive flag.
void setRoot(snd_seq_addr_t *addr)
Sets the subscriber's root address.
void setIndex(int index)
Sets the index of the subscriber.
int getIndex()
Gets the index of the subscriber container.
int getClient()
Gets the subscriber's client number.
const snd_seq_addr_t * getAddr()
Gets the subscriber's address.
int getQueue()
Gets the subscriber's queue number.
int getPort()
Gets the subscriober's port number.
int getNumSubs()
Gets the number of subscribers returned by a query operation.
void setClient(int client)
Sets the subscriber's client number.
virtual ~Subscriber()
Destructor.
snd_seq_query_subs_type_t getType()
Gets the subscription type (read or write).
bool getTimeUpdate()
Gets the susbcriber's time-update flag.
Subscriber * clone()
Copy the current object.
void setPort(int port)
Sets the subscriber's port number.
bool getTimeReal()
Gets the subscriber's time real time-stamp flag.
virtual ~Subscription()
Destructor.
Subscription()
Default constructor.
const snd_seq_addr_t * getSender()
Gets the sender address of the subscription (MIDI OUT port)
void setExclusive(bool val)
Sets the subscription's exclusive flag.
int getSizeOfInfo() const
Gets the size of the ALSA subscription object.
bool getExclusive()
Gets the subscription's exclusive flag.
void setSender(unsigned char client, unsigned char port)
Sets the Subscription's sender (MIDI OUT) port.
void unsubscribe(MidiClient *seq)
Breaks the subscription in the ALSA sequencer subsystem.
Subscription * clone()
Copy the current object.
void setDest(unsigned char client, unsigned char port)
Sets the Subscription's destination (MIDI IN) port.
int getQueue()
Gets the susbcription's queue number.
void setQueue(int queue)
Sets the Subscription's Queue number.
void setTimeUpdate(bool val)
Sets the susbcription's time-update flag.
Subscription & operator=(const Subscription &other)
Assignment operator.
bool getTimeUpdate()
Gets the susbcription's time-update flag.
void setTimeReal(bool val)
Sets the subscription's time real (time-stamping) flag.
const snd_seq_addr_t * getDest()
Gets the destination address of the subscription (MIDI IN port)
void subscribe(MidiClient *seq)
Performs the subscription in the ALSA sequencer subsystem.
bool getTimeReal()
Gets the susbcription's time-real (time-stamping) flag.
#define CHECK_WARNING(x)
This macro calls the check warning function.