• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkmid
 

libkmid

  • libkmid
gusout.h
1 /* gusout.h - class gusOut which implements support for Gravis
2  Ultrasound cards through a /dev/sequencer device
3  This file is part of LibKMid 0.9.5
4  Copyright (C) 1998,99,2000 Antonio Larrosa Jimenez
5  LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 
22  Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
23 
24 ***************************************************************************/
25 #ifndef _GUSOUT_H
26 #define _GUSOUT_H
27 
28 #include <libkmid/midiout.h>
29 #include <libkmid/voiceman.h>
30 
45 class GUSOut : public MidiOut
46 {
47  private:
48  class GUSOutPrivate;
49  GUSOutPrivate *di;
50 
51  int patchloaded[256];
52  int nvoices;
53 
54  int use8bit; // Use 8 bit patches, instead of 16 bits to use less memory
55  VoiceManager *vm;
56 
57  int totalmemory; // Total memory in soundcard
58  int freememory; // Free memory
59 
60 
61  void patchesLoadingOrder(int *patchesused,int *patchesordered);
62  const char *patchName(int pgm);
63 
64  public:
68  GUSOut(int d=0,int total =12);
69 
73  ~GUSOut();
74 
78  virtual void openDev (int sqfd);
79 
83  virtual void closeDev (void);
84 
88  virtual void initDev (void);
89 
93  virtual void noteOn ( uchar chn, uchar note, uchar vel );
94 
98  virtual void noteOff ( uchar chn, uchar note, uchar vel );
99 
103  virtual void keyPressure ( uchar chn, uchar note, uchar vel );
104 
108  virtual void chnPatchChange ( uchar chn, uchar patch );
109 
113  virtual void chnPressure ( uchar chn, uchar vel );
114 
118  virtual void chnPitchBender ( uchar chn, uchar lsb, uchar msb );
119 
123  virtual void chnController ( uchar chn, uchar ctl , uchar v );
124 
129  virtual void sysex ( uchar *data,ulong size);
130 
140  void setPatchesToUse(int *patchesused);
141 
152  int loadPatch (int pgm);
153 
162  int patch(int p);
163 
164  private:
165  static const char *GUS_patches_directory;
166  static int delete_GUS_patches_directory;
167 
168  public:
176  static void setGUSPatchesDirectory(const char *dir);
177 
178 };
179 
180 #endif

libkmid

Skip menu "libkmid"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libkmid

Skip menu "libkmid"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for libkmid by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |