Browse Source

Should compile on Linux.

tags/1.9.8
Stephane Letz 13 years ago
parent
commit
80bc23a3af
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      linux/alsa/JackAlsaDriver.cpp
  2. +1
    -1
      linux/firewire/JackFFADODriver.cpp
  3. +1
    -1
      linux/freebob/JackFreebobDriver.cpp

+ 2
- 2
linux/alsa/JackAlsaDriver.cpp View File

@@ -94,7 +94,7 @@ void JackAlsaDriver::UpdateLatencies()
int JackAlsaDriver::Attach()
{
JackPort* port;
int port_index;
jack_port_id_t port_index;
unsigned long port_flags = (unsigned long)CaptureDriverFlags;
char name[JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE];
char alias[JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE];
@@ -116,7 +116,7 @@ int JackAlsaDriver::Attach()
for (int i = 0; i < fCaptureChannels; i++) {
snprintf(alias, sizeof(alias) - 1, "%s:%s:out%d", fAliasName, fCaptureDriverName, i + 1);
snprintf(name, sizeof(name) - 1, "%s:capture_%d", fClientControl.fName, i + 1);
if if (fEngine->PortRegister(fClientControl.fRefNum, name, JACK_DEFAULT_AUDIO_TYPE, (JackPortFlags)port_flags, fEngineControl->fBufferSize, &port_index) < 0) {
if (fEngine->PortRegister(fClientControl.fRefNum, name, JACK_DEFAULT_AUDIO_TYPE, (JackPortFlags)port_flags, fEngineControl->fBufferSize, &port_index) < 0) {
jack_error("driver: cannot register port for %s", name);
return -1;
}


+ 1
- 1
linux/firewire/JackFFADODriver.cpp View File

@@ -346,7 +346,7 @@ JackFFADODriver::ffado_driver_delete (ffado_driver_t *driver)
int JackFFADODriver::Attach()
{
JackPort* port;
int port_index;
jack_port_id_t port_index;
char buf[JACK_PORT_NAME_SIZE];
char portname[JACK_PORT_NAME_SIZE];
jack_latency_range_t range;


+ 1
- 1
linux/freebob/JackFreebobDriver.cpp View File

@@ -667,7 +667,7 @@ JackFreebobDriver::freebob_driver_midi_finish (freebob_driver_midi_handle_t *m)
int JackFreebobDriver::Attach()
{
JackPort* port;
int port_index;
jack_port_id_t port_index;

char buf[JACK_PORT_NAME_SIZE];
char portname[JACK_PORT_NAME_SIZE];


Loading…
Cancel
Save