3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2008 Christian Schoenebeck * |
* Copyright (C) 2005 - 2013 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
86 |
protected: |
protected: |
87 |
AudioChannelJack(uint ChannelNr, AudioOutputDeviceJack* pDevice) throw (AudioOutputException); |
AudioChannelJack(uint ChannelNr, AudioOutputDeviceJack* pDevice) throw (AudioOutputException); |
88 |
~AudioChannelJack(); |
~AudioChannelJack(); |
89 |
|
void UpdateJackBuffer(uint size); |
90 |
friend class AudioOutputDeviceJack; |
friend class AudioOutputDeviceJack; |
91 |
private: |
private: |
92 |
AudioOutputDeviceJack* pDevice; |
AudioOutputDeviceJack* pDevice; |
122 |
virtual uint MaxSamplesPerCycle(); |
virtual uint MaxSamplesPerCycle(); |
123 |
virtual uint SampleRate(); |
virtual uint SampleRate(); |
124 |
virtual AudioChannel* CreateChannel(uint ChannelNr); |
virtual AudioChannel* CreateChannel(uint ChannelNr); |
125 |
|
virtual float latency(); |
126 |
|
|
127 |
static String Name(); |
static String Name(); |
128 |
|
|
132 |
static String Version(); |
static String Version(); |
133 |
|
|
134 |
int Process(uint Samples); // FIXME: should be private |
int Process(uint Samples); // FIXME: should be private |
135 |
|
void UpdateJackBuffers(uint size); |
136 |
protected: |
protected: |
137 |
AudioOutputDeviceJack(String* AutoConnectPortIDs = NULL, uint AutoConnectPorts = 0); |
AudioOutputDeviceJack(String* AutoConnectPortIDs = NULL, uint AutoConnectPorts = 0); |
138 |
private: |
private: |
184 |
|
|
185 |
JackClient(String Name); |
JackClient(String Name); |
186 |
~JackClient(); |
~JackClient(); |
187 |
|
|
188 |
|
// Callback functions for the libjack API |
189 |
|
static int libjackSampleRateCallback(jack_nframes_t nframes, void *arg); |
190 |
|
static int libjackBufferSizeCallback(jack_nframes_t nframes, void *arg); |
191 |
}; |
}; |
192 |
} |
} |
193 |
|
|