1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/*
* File: seqpriv.h
*
* Copyright (C) 1999 Steve Ratcliffe
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* ---------
* This file is a set of interfaces to provide a little
* higher level view of the sequencer. It is mainly experimental
* to investigate new approaches. If successful they will be proposed
* as additions/replacements to the existing seq lib.
*
*
*
*/
struct seq_context {
snd_seq_t *handle; /* The snd_seq handle to /dev/snd/seq */
int client;/* The client associated with this context */
int queue; /* The queue to use for all operations */
snd_seq_addr_t source; /* Source for events */
//snd_seq_addr_t dest; /* Destination for events */
GArray *destlist; /* Destination list */
#define ctxndest destlist->len
#define ctxdest destlist->data
char timer_started; /* True if timer is running */
int port_count; /* Ports allocated */
struct seq_context *main; /* Pointer to the main context */
GSList *ctlist; /* Context list if a main context */
};
|