Browse Source

firewire: compile with FFADO versions < 9 again

ffado_streaming_set_period_size() is exposed starting r2078 of FFADO.
To avoid a build dependency on ffado-svn in jack, we copy the prototype
declaration.

Since the symbol is defined as weak, no problems arise at runtime.
tags/1.9.9.5
Adrian Knoth 12 years ago
parent
commit
bf4954c865
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      linux/firewire/JackFFADODriver.cpp

+ 7
- 0
linux/firewire/JackFFADODriver.cpp View File

@@ -46,6 +46,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include "JackCompilerDeps.h"
#include "JackLockedEngine.h"

// FFADO_API_VERSION was first defined with API_VERSION 9, so all previous
// headers do not provide this define.
#ifndef FFADO_API_VERSION
extern "C" int ffado_streaming_set_period_size(ffado_device_t *dev,
unsigned int period) __attribute__((__weak__));
#endif

namespace Jack
{



Loading…
Cancel
Save