Browse Source

Merge branch 'master' of ssh://repo.or.cz/srv/git/jack2 into newer-midi

tags/1.9.8
Devin Anderson 14 years ago
parent
commit
ed79e13f17
28 changed files with 484 additions and 94 deletions
  1. +18
    -4
      common/JackDriverLoader.cpp
  2. +2
    -2
      common/JackLibSampleRateResampler.cpp
  3. +1
    -1
      common/jack/jack.h
  4. +3
    -3
      example-clients/midi_latency_test.c
  5. +13
    -12
      windows/JackRouter/JackRouter.cpp
  6. +280
    -0
      windows/JackRouter/JackRouter.vcxproj
  7. +69
    -0
      windows/JackRouter/JackRouter.vcxproj.filters
  8. +3
    -0
      windows/JackRouter/JackRouter.vcxproj.user
  9. +5
    -1
      windows/JackRouter/README
  10. +14
    -23
      windows/JackRouter/resource.rc
  11. BIN
      windows/Release/bin/libsamplerate_x86.dll
  12. BIN
      windows/Release/bin/portaudio_x86.dll
  13. BIN
      windows/Release64/bin/libsamplerate_x86_64.dll
  14. BIN
      windows/Release64/bin/portaudio_x86_64.dll
  15. BIN
      windows/Setup/JackRouter.dll
  16. BIN
      windows/Setup/JackRouter64.dll
  17. +8
    -1
      windows/Setup/README
  18. +6
    -6
      windows/Setup/jack.ci
  19. +31
    -18
      windows/Setup/jack64.ci
  20. BIN
      windows/Setup/src/gpl_installer.rtf
  21. +3
    -3
      windows/jack_audioadapter.cbp
  22. +3
    -3
      windows/jack_netadapter.cbp
  23. +3
    -3
      windows/jack_netsource.cbp
  24. +4
    -3
      windows/jackd.workspace
  25. +1
    -1
      windows/libjackserver.cbp
  26. +10
    -5
      windows/portaudio/JackPortAudioAdapter.cpp
  27. +7
    -5
      windows/portaudio/JackPortAudioDriver.cpp
  28. BIN
      windows/portaudio/portaudio_x86.lib

+ 18
- 4
common/JackDriverLoader.cpp View File

@@ -531,7 +531,7 @@ jack_drivers_load (JSList * drivers) {
HANDLE file;
const char * ptr = NULL;
JSList * driver_list = NULL;
jack_driver_desc_t * desc;
jack_driver_desc_t * desc = NULL;

if ((driver_dir = getenv("JACK_DRIVER_DIR")) == 0) {
// for WIN32 ADDON_DIR is defined in JackConstants.h as relative path
@@ -551,6 +551,11 @@ jack_drivers_load (JSList * drivers) {
}

do {
/* check the filename is of the right format */
if (strncmp ("jack_", filedata.cFileName, 5) != 0) {
continue;
}

ptr = strrchr (filedata.cFileName, '.');
if (!ptr) {
continue;
@@ -560,6 +565,11 @@ jack_drivers_load (JSList * drivers) {
continue;
}

/* check if dll is an internal client */
if (check_symbol(filedata.cFileName, "jack_internal_initialize")) {
continue;
}

desc = jack_get_descriptor (drivers, filedata.cFileName, "driver_get_descriptor");
if (desc) {
driver_list = jack_slist_append (driver_list, desc);
@@ -586,7 +596,7 @@ jack_drivers_load (JSList * drivers) {
const char * ptr;
int err;
JSList * driver_list = NULL;
jack_driver_desc_t * desc;
jack_driver_desc_t * desc = NULL;

const char* driver_dir;
if ((driver_dir = getenv("JACK_DRIVER_DIR")) == 0) {
@@ -618,8 +628,12 @@ jack_drivers_load (JSList * drivers) {
continue;
}

desc = jack_get_descriptor (drivers, dir_entry->d_name, "driver_get_descriptor");
/* check if dll is an internal client */
if (check_symbol(dir_entry->d_name, "jack_internal_initialize")) {
continue;
}

desc = jack_get_descriptor (drivers, dir_entry->d_name, "driver_get_descriptor");
if (desc) {
driver_list = jack_slist_append (driver_list, desc);
} else {
@@ -669,7 +683,7 @@ jack_internals_load (JSList * internals) {
file = (HANDLE )FindFirstFile(dll_filename, &filedata);

if (file == INVALID_HANDLE_VALUE) {
jack_error("error");
jack_error("could not open driver directory %s", driver_dir);
return NULL;
}



+ 2
- 2
common/JackLibSampleRateResampler.cpp View File

@@ -148,7 +148,7 @@ unsigned int JackLibSampleRateResampler::WriteResample(jack_default_audio_sample

res = src_process(fResampler, &src_data);
if (res != 0) {
jack_error("JackLibSampleRateResampler::ReadResample ratio = %f err = %s", fRatio, src_strerror(res));
jack_error("JackLibSampleRateResampler::WriteResample ratio = %f err = %s", fRatio, src_strerror(res));
return 0;
}

@@ -167,7 +167,7 @@ unsigned int JackLibSampleRateResampler::WriteResample(jack_default_audio_sample

if (read_frames < frames) {
jack_error("Input available = %ld", available_frames);
jack_error("JackLibSampleRateResampler::ReadResample error read_frames = %ld", read_frames);
jack_error("JackLibSampleRateResampler::WriteResample error read_frames = %ld", read_frames);
}

return read_frames;


+ 1
- 1
common/jack/jack.h View File

@@ -233,7 +233,7 @@ jack_nframes_t jack_thread_wait (jack_client_t*, int status) JACK_OPTIONAL_WEAK_
*
* @return the number of frames of data to process
*/
jack_nframes_t jack_cycle_wait (jack_client_t* client) JACK_OPTIONAL_WEAK_EXPORT;
jack_nframes_t jack_cycle_wait (jack_client_t* client) JACK_OPTIONAL_WEAK_EXPORT;

/**
* Signal next clients in the graph.


+ 3
- 3
example-clients/midi_latency_test.c View File

@@ -77,7 +77,7 @@ typedef sem_t *semaphore_t;

const char *ERROR_RESERVE = "could not reserve MIDI event on port buffer";
const char *ERROR_SHUTDOWN = "the JACK server has been shutdown";
const char *ERROR_TIMEOUT = "timed out while waiting for MIDI message";
const char *ERROR_TIMEOUT1 = "timed out while waiting for MIDI message";

const char *SOURCE_EVENT_RESERVE = "jack_midi_event_reserve";
const char *SOURCE_PROCESS = "handle_process";
@@ -209,7 +209,7 @@ get_semaphore_error()
if (! FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
semaphore_error_msg, 1024, NULL)) {
sprintf(semaphore_error_msg, 1023, "Unknown OS error code '%d'",
snprintf(semaphore_error_msg, 1023, "Unknown OS error code '%d'",
error);
}
return semaphore_error_msg;
@@ -284,7 +284,7 @@ handle_process(jack_nframes_t frames, void *arg)
microseconds = jack_frames_to_time(client, last_frame_time) -
last_activity_time;
if ((microseconds / 1000000) >= timeout) {
set_process_error(SOURCE_PROCESS, ERROR_TIMEOUT);
set_process_error(SOURCE_PROCESS, ERROR_TIMEOUT1);
}
break;
found_message:


+ 13
- 12
windows/JackRouter/JackRouter.cpp View File

@@ -29,13 +29,12 @@ Copyright (C) 2006 Grame
#include "profport.h"
/*
08/07/2007 SL : USe jack_client_open instead of jack_client_new (automatic client renaming).
09/08/2007 SL : Add JackRouter.ini parameter file.
09/20/2007 SL : Better error report in DllRegisterServer (for Vista).
09/27/2007 SL : Add AUDO_CONNECT property in JackRouter.ini file.
10/10/2007 SL : Use ASIOSTInt32LSB instead of ASIOSTInt16LSB.
12/04/2011 SL : Compilation on Windows 64.
*/
//------------------------------------------------------------------------------------------
@@ -54,7 +53,13 @@ static const double twoRaisedTo32Reciprocal = 1. / twoRaisedTo32;
#if WINDOWS
#include "windows.h"
#include "mmsystem.h"
#include "psapi.h"
#ifdef _WIN64
#define JACK_ROUTER "JackRouter64.dll"
#include <psapi.h>
#else
#define JACK_ROUTER "JackRouter.dll"
#include "./psapi.h"
#endif
using namespace std;
@@ -95,11 +100,11 @@ HRESULT _stdcall DllRegisterServer()
LONG rc;
char errstr[128];
rc = RegisterAsioDriver (IID_ASIO_DRIVER,"JackRouter.dll","JackRouter","JackRouter","Apartment");
rc = RegisterAsioDriver (IID_ASIO_DRIVER, JACK_ROUTER,"JackRouter","JackRouter","Apartment");
if (rc) {
memset(errstr,0,128);
sprintf(errstr,"Register Server failed ! (%d)",rc);
sprintf(errstr,"Register Server failed ! (%d)", rc);
MessageBox(0,(LPCTSTR)errstr,(LPCTSTR)"JackRouter",MB_OK);
return -1;
}
@@ -115,7 +120,7 @@ HRESULT _stdcall DllUnregisterServer()
LONG rc;
char errstr[128];
rc = UnregisterAsioDriver (IID_ASIO_DRIVER,"JackRouter.dll","JackRouter");
rc = UnregisterAsioDriver (IID_ASIO_DRIVER,JACK_ROUTER,"JackRouter");
if (rc) {
memset(errstr,0,128);
@@ -175,7 +180,7 @@ JackRouter::JackRouter() : AsioDriver()
printf("Constructor\n");
// Use "jackrouter.ini" parameters if available
HMODULE handle = LoadLibrary("JackRouter.dll");
HMODULE handle = LoadLibrary(JACK_ROUTER);
if (handle) {
@@ -209,15 +214,11 @@ JackRouter::~JackRouter()
{
stop ();
disposeBuffers ();
printf("Destructor\n");
jack_client_close(fClient);
printf("Destructor\n");
}
//------------------------------------------------------------------------------------------
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include "psapi.h"
static bool GetEXEName(DWORD dwProcessID, char* name)
{


+ 280
- 0
windows/JackRouter/JackRouter.vcxproj View File

@@ -0,0 +1,280 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<SccProjectName />
<SccLocalPath />
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>.\Debug\</OutDir>
<IntDir>.\Debug\</IntDir>
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutDir>.\Debug\</OutDir>
<IntDir>.\Debug\</IntDir>
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>.\Release\</OutDir>
<IntDir>.\Release\</IntDir>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutDir>.\Release\</OutDir>
<IntDir>.\Release\</IntDir>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<FunctionLevelLinking>false</FunctionLevelLinking>
<Optimization>Disabled</Optimization>
<SuppressStartupBanner>true</SuppressStartupBanner>
<WarningLevel>Level3</WarningLevel>
<MinimalRebuild>true</MinimalRebuild>
<AdditionalIncludeDirectories>..\..\..\..\..\ASIOSDK2\common;..\..\common;..\..\common\jack;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerListingLocation>.\Debug\</AssemblerListingLocation>
<BrowseInformation>true</BrowseInformation>
<PrecompiledHeaderOutputFile>.\Debug\JackRouter.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>.\Debug\</ObjectFileName>
<ProgramDataBaseFileName>.\Debug\</ProgramDataBaseFileName>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
</ClCompile>
<Midl>
<SuppressStartupBanner>true</SuppressStartupBanner>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<TypeLibraryName>.\Debug\JackRouter.tlb</TypeLibraryName>
<MkTypLibCompatible>true</MkTypLibCompatible>
<TargetEnvironment>Win32</TargetEnvironment>
</Midl>
<ResourceCompile>
<Culture>0x0409</Culture>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Bscmake>
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\Debug\JackRouter.bsc</OutputFile>
</Bscmake>
<Link>
<SuppressStartupBanner>true</SuppressStartupBanner>
<LinkDLL>true</LinkDLL>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<OutputFile>Debug/JackRouter_debug.dll</OutputFile>
<ImportLibrary>.\Debug\JackRouter_debug.lib</ImportLibrary>
<AdditionalDependencies>odbc32.lib;odbccp32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>.\JackRouter.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<FunctionLevelLinking>false</FunctionLevelLinking>
<Optimization>Disabled</Optimization>
<SuppressStartupBanner>true</SuppressStartupBanner>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\..\..\..\..\ASIOSDK2\common;..\..\common;..\..\common\jack;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerListingLocation>.\Debug\</AssemblerListingLocation>
<BrowseInformation>true</BrowseInformation>
<PrecompiledHeaderOutputFile>.\Debug\JackRouter.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>.\Debug\</ObjectFileName>
<ProgramDataBaseFileName>.\Debug\</ProgramDataBaseFileName>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
</ClCompile>
<Midl>
<SuppressStartupBanner>true</SuppressStartupBanner>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<TypeLibraryName>.\Debug\JackRouter.tlb</TypeLibraryName>
<MkTypLibCompatible>true</MkTypLibCompatible>
</Midl>
<ResourceCompile>
<Culture>0x0409</Culture>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Bscmake>
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\Debug\JackRouter.bsc</OutputFile>
</Bscmake>
<Link>
<SuppressStartupBanner>true</SuppressStartupBanner>
<LinkDLL>true</LinkDLL>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<OutputFile>Debug/JackRouter_debug.dll</OutputFile>
<ImportLibrary>.\Debug\JackRouter_debug.lib</ImportLibrary>
<AdditionalDependencies>odbc32.lib;odbccp32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>.\JackRouter.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<Optimization>MaxSpeed</Optimization>
<SuppressStartupBanner>true</SuppressStartupBanner>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\..\..\..\..\ASIOSDK2\common;..\..\common;..\..\common\jack;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerListingLocation>.\Release\</AssemblerListingLocation>
<BrowseInformation>true</BrowseInformation>
<PrecompiledHeaderOutputFile>.\Release\JackRouter.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>.\Release\</ObjectFileName>
<ProgramDataBaseFileName>.\Release\</ProgramDataBaseFileName>
</ClCompile>
<Midl>
<SuppressStartupBanner>true</SuppressStartupBanner>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<TypeLibraryName>.\Release\JackRouter.tlb</TypeLibraryName>
<MkTypLibCompatible>true</MkTypLibCompatible>
<TargetEnvironment>Win32</TargetEnvironment>
</Midl>
<ResourceCompile>
<Culture>0x0409</Culture>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Bscmake>
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\Release\JackRouter.bsc</OutputFile>
</Bscmake>
<Link>
<SuppressStartupBanner>true</SuppressStartupBanner>
<LinkDLL>true</LinkDLL>
<SubSystem>Windows</SubSystem>
<OutputFile>.\Release\JackRouter.dll</OutputFile>
<ImportLibrary>.\Release\JackRouter.lib</ImportLibrary>
<AdditionalDependencies>odbc32.lib;odbccp32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>.\JackRouter.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<Optimization>MaxSpeed</Optimization>
<SuppressStartupBanner>true</SuppressStartupBanner>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\..\..\..\..\ASIOSDK2\common;..\..\common;..\..\common\jack;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;PSAPI_VERSION=2;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerListingLocation>.\Release\</AssemblerListingLocation>
<BrowseInformation>true</BrowseInformation>
<PrecompiledHeaderOutputFile>.\Release\JackRouter.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>.\Release\</ObjectFileName>
<ProgramDataBaseFileName>.\Release\</ProgramDataBaseFileName>
</ClCompile>
<Midl>
<SuppressStartupBanner>true</SuppressStartupBanner>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<TypeLibraryName>.\Release\JackRouter.tlb</TypeLibraryName>
<MkTypLibCompatible>true</MkTypLibCompatible>
</Midl>
<ResourceCompile>
<Culture>0x0409</Culture>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Bscmake>
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\Release\JackRouter64.bsc</OutputFile>
</Bscmake>
<Link>
<SuppressStartupBanner>true</SuppressStartupBanner>
<LinkDLL>true</LinkDLL>
<SubSystem>Windows</SubSystem>
<OutputFile>.\Release\JackRouter64.dll</OutputFile>
<ImportLibrary>.\Release\JackRouter64.lib</ImportLibrary>
<AdditionalDependencies>odbc32.lib;odbccp32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>.\JackRouter.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\..\ASIOSDK2\common\combase.cpp" />
<ClCompile Include="..\..\..\..\..\ASIOSDK2\common\dllentry.cpp" />
<ClCompile Include="JackRouter.cpp" />
<ClCompile Include="profport.cpp" />
<ClCompile Include="..\..\..\..\..\ASIOSDK2\common\register.cpp" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="JackRouter.def" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resource.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\common\asio.h" />
<ClInclude Include="..\..\Common\Asiodrvr.h" />
<ClInclude Include="..\asiosmpl.h" />
<ClInclude Include="..\..\..\common\asiosys.h" />
<ClInclude Include="..\..\..\common\combase.h" />
<ClInclude Include="..\..\..\common\iasiodrv.h" />
</ItemGroup>
<ItemGroup>
<Library Include="..\Release64\bin\libjack64.lib" />
<Library Include="..\Release\bin\libjack.lib" />
<Library Include="Psapi.Lib" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

+ 69
- 0
windows/JackRouter/JackRouter.vcxproj.filters View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{72f2b2b0-dbea-4574-94fa-0c1ea89a3c8e}</UniqueIdentifier>
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{9590ca0b-94c8-4c22-88b2-66724eb0ea21}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{9742e150-2741-4bf4-9b81-bea4aab464af}</UniqueIdentifier>
<Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\..\ASIOSDK2\common\combase.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\..\ASIOSDK2\common\dllentry.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="JackRouter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="profport.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\..\ASIOSDK2\common\register.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resource.rc">
<Filter>Source Files</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\common\asio.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\Common\Asiodrvr.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\asiosmpl.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\common\asiosys.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\common\combase.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\common\iasiodrv.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Library Include="..\Release\bin\libjack.lib" />
<Library Include="..\Release64\bin\libjack64.lib" />
<Library Include="Psapi.Lib" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="JackRouter.def">
<Filter>Source Files</Filter>
</CustomBuild>
</ItemGroup>
</Project>

+ 3
- 0
windows/JackRouter/JackRouter.vcxproj.user View File

@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>

+ 5
- 1
windows/JackRouter/README View File

@@ -1,3 +1,7 @@
This folder contains the sources for ASIO/JACK bridge ASIO driver called "JackRouter". The included project is a Microsoft VC++ 6 one.
It requires some files (combase.cpp, dllentry.cpp, register.cpp) that are part on the ASIO driver SDK. The produced "JackRouter.dll" file
has to be registered in the system using the "regsvr32" tool.
has to be registered in the system using the "regsvr32" tool.
64 bits compilation
====================
A Visual Studio 10 project has been added to compile 64 and 32 bits targets.

+ 14
- 23
windows/JackRouter/resource.rc View File

@@ -1,4 +1,4 @@
//Microsoft Developer Studio generated resource script.
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
@@ -13,15 +13,12 @@
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// French (France) resources
// Français (France) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
#ifdef _WIN32
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
#pragma code_page(1252)
#endif //_WIN32
#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
@@ -44,18 +41,14 @@ BEGIN
BEGIN
BLOCK "040c04b0"
BEGIN
VALUE "Comments", "\0"
VALUE "CompanyName", "Grame\0"
VALUE "FileDescription", "JackRouter ASIO driver\0"
VALUE "FileVersion", "0, 2, 1, 0\0"
VALUE "InternalName", "JackRouter\0"
VALUE "LegalCopyright", "Copyright Grame © 2006-2010\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "JackRouter.dll\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "JackRouter\0"
VALUE "ProductVersion", "0, 2, 1, 0\0"
VALUE "SpecialBuild", "\0"
VALUE "CompanyName", "Grame"
VALUE "FileDescription", "JackRouter ASIO driver"
VALUE "FileVersion", "0, 2, 1, 0"
VALUE "InternalName", "JackRouter"
VALUE "LegalCopyright", "Copyright Grame © 2006-2011"
VALUE "OriginalFilename", "JackRouter.dll"
VALUE "ProductName", "JackRouter"
VALUE "ProductVersion", "0, 2, 1, 0"
END
END
BLOCK "VarFileInfo"
@@ -64,8 +57,6 @@ BEGIN
END
END
#endif // !_MAC
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
@@ -73,18 +64,18 @@ END
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
@@ -92,7 +83,7 @@ END
#endif // APSTUDIO_INVOKED
#endif // French (France) resources
#endif // Français (France) resources
/////////////////////////////////////////////////////////////////////////////


BIN
windows/Release/bin/libsamplerate-0.dll → windows/Release/bin/libsamplerate_x86.dll View File


BIN
windows/Release/bin/portaudio_x86.dll View File


BIN
windows/Release64/bin/libsamplerate_x86_64.dll View File


BIN
windows/Release64/bin/portaudio_x86_64.dll View File


BIN
windows/Setup/JackRouter.dll View File


BIN
windows/Setup/JackRouter64.dll View File


+ 8
- 1
windows/Setup/README View File

@@ -14,4 +14,11 @@ Just use : 'dlltool -l libjackserver.lib -D libjackserver.dll -d libjackserver.d
Once all binaries are available, just execute the script in 'CreateInstall' to make 'setup.exe'.
The setup will copy all binaries to a specified folder, register the JackRouter (in order to have it in the ASIO drivers list) and create some shortcuts in the start menu.
It's a good and proper way to get jack installed on windows.
It's a good and proper way to get jack installed on windows.
64 bits compilation
====================
- for some reasons CodeBlocks create libjack.dll.a and libjack.dll.def names. So the ".dll" part has to be removed before using "lib" tool to create ".lib" files.
- to create 64 bits ".lib" files, the "/MACHINE:X64 option has to be used.

+ 6
- 6
windows/Setup/jack.ci View File

@@ -1,7 +1,7 @@
<*project
version = 4 civer = "Free v4.14.5" winver = "2.6/5.1.2600" >
<output> .</>
<exename> Jack_v1.9.8_setup.exe</>
<exename> Jack_v1.9.8_32_setup.exe</>
<digitsign> </>
<appname> Jack v1.9.8</>
<password> </>
@@ -53,8 +53,8 @@
<bgfoot> </>
<bgback> </>
<files listview >
<_><src>..\Release\bin\libjack.a</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>.\src\vcredist_x86.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>.\src\vcredist_2010_x86.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjack.a</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjack.lib</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjack.def</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjackserver.a</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
@@ -66,10 +66,11 @@
<_><src>..\Release\bin\jack_lsp.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\jack_metro.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\jack_unload.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\jack_midi_latency_test.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\jackd.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjack.dll</><dest>sys</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjackserver.dll</><dest>sys</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libsamplerate-0.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libsamplerate_x86.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\portaudio_x86.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\jack\jack_net.dll</><dest>inst</><custom>jack</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\jack\jack_netone.dll</><dest>inst</><custom>jack</><ifexist>overnewer</><recurs>0</></>
@@ -106,8 +107,7 @@
</files>
<runx listview >
<_><type>app</><path>inst</><file>vcredist_x86.exe</><cmdline></><wait>1</><workdir>inst</><custdir></><when>end</></>
<_><type>app</><path>inst</><file>vcredist_2010_x86.exe</><cmdline></><wait>1</><workdir>inst</><custdir></><when>end</></>
</runx>
<registry listview >


+ 31
- 18
windows/Setup/jack64.ci View File

@@ -1,5 +1,5 @@
<*project
version = 4 civer = "Free v4.14.5" winver = "2.6/5.1.2600" >
version = 4 civer = "Free v4.14.5" winver = "2.8/6.1.7600" >
<output> .</>
<exename> Jack_v1.9.8_64_setup.exe</>
<digitsign> </>
@@ -50,27 +50,38 @@
<bl> My Demo</>
<blurl> </>
<bghead> </>
<bgfoot> </>
<bgfoot> </>
<bgback> </>
<files listview >
<_><src>..\Release64\bin\libjack64.a</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>.\src\vcredist_x86.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>.\src\vcredist_2010_x86.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>.\src\vcredist_2010_x64.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjack64.a</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjack64.lib</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjack64.def</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjack64.dll</><dest>win</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjackserver64.a</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjackserver64.lib</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjackserver64.def</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjackserver64.dll</><dest>win</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjack.a</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjack.lib</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjack.def</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjack.dll</><dest>sys</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjackserver.a</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjackserver.lib</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjackserver.def</><dest>inst</><custom>lib</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\libjackserver.dll</><dest>sys</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack_connect.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack_disconnect.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack_load.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack_lsp.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack_metro.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack_unload.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack_midi_latency_test.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jackd.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjack64.dll</><dest>sys</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libjackserver64.dll</><dest>sys</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libsamplerate-0-x86_64.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\libsamplerate_x86_64.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\portaudio_x86_64.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release\bin\portaudio_x86.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack\jack_net.dll</><dest>inst</><custom>jack</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack\jack_netone.dll</><dest>inst</><custom>jack</><ifexist>overnewer</><recurs>0</></>
<_><src>..\Release64\bin\jack_netsource.exe</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
@@ -94,6 +105,7 @@
<_><src>..\..\common\jack\systemdeps.h</><dest>inst</><custom>includes\jack</><ifexist>overnewer</><recurs>1</></>
<_><src>..\..\common\jack\weakjack.h</><dest>inst</><custom>includes\jack</><ifexist>overnewer</><recurs>1</></>
<_><src>..\..\common\jack\weakmacros.h</><dest>inst</><custom>includes\jack</><ifexist>overnewer</><recurs>1</></>
<_><src>.\JackRouter.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>.\JackRouter64.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>.\JackRouter.ini</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
<_><src>.\qjackctl\mingwm10.dll</><dest>inst</><custom></><ifexist>overnewer</><recurs>0</></>
@@ -106,37 +118,38 @@
</files>
<runx listview >
<_><type>app</><path>inst</><file>vcredist_x86.exe</><cmdline></><wait>1</><workdir>inst</><custdir></><when>end</></>
<_><type>app</><path>inst</><file>vcredist_2010_x86.exe</><cmdline></><wait>1</><workdir>inst</><custdir></><when>end</></>
<_><type>app</><path>inst</><file>vcredist_2010_x64.exe</><cmdline></><wait>1</><workdir>inst</><custdir></><when>end</></>
</runx>
<registry listview >
</registry>
<shcut listview >
<_><shpath>prog</><shname>Jack NetDriver</><tarpath>inst</><tarname>jackd.exe</><cmdline>-R -S -d net</><workpath>inst</><workcust></><icon></></>
<_><shpath>prog</><shname>Jack NetDriver</><tarpath>inst</><tarname>jackd.exe</><cmdline>-R -S -d net</><workpath>inst</><workcust></><icon></></>
<_><shpath>prog</><shname>Jack Portaudio</><tarpath>inst</><tarname>jackd.exe</><cmdline>-R -S -d portaudio</><workpath>inst</><workcust></><icon></></>
<_><shpath>prog</><shname>Jack Control</><tarpath>inst</><tarname>qjackctl.exe</><cmdline></><workpath>inst</><workcust></><icon>jackdmp.exe</></>
<_><shpath>prog</><shname>Jack Command</><tarpath>sys</><tarname>cmd.exe</><cmdline></><workpath>inst</><workcust></><icon></></>
</shcut>
<ini listview >
</ini>
<copy listview >
</copy>
<activex listview >
<_><path>inst</><name>JackRouter64.dll</></>
<_><path>inst</><name>JackRouter.dll</></>
<_><path>inst</><name>JackRouter64.dll</></>
</activex>
<font listview >
</font>
<ext listview >
</ext>
<mreg listview >
</mreg>
<macros> Pathadd=</>
</project>
</project>

BIN
windows/Setup/src/gpl_installer.rtf View File


+ 3
- 3
windows/jack_audioadapter.cbp View File

@@ -95,7 +95,7 @@
</Compiler>
<Linker>
<Add option="-m32" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add library="libjackserver" />
<Add library="portaudio_x86" />
<Add directory="Release\bin" />
@@ -123,7 +123,7 @@
</Compiler>
<Linker>
<Add option="-m32" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add library="libjackserver" />
<Add library="portaudio_x86" />
<Add directory="Debug\bin" />
@@ -152,7 +152,7 @@
</Compiler>
<Linker>
<Add option="-m32" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add library="libjackserver" />
<Add library="portaudio_x86" />
<Add directory="Release\bin" />


+ 3
- 3
windows/jack_netadapter.cbp View File

@@ -85,7 +85,7 @@
<Linker>
<Add option="-m32" />
<Add library="libjackserver" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add directory="Release\bin" />
</Linker>
<ExtraCommands>
@@ -110,7 +110,7 @@
<Linker>
<Add option="-m32" />
<Add library="libjackserver" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add directory="Debug\bin" />
</Linker>
<ExtraCommands>
@@ -136,7 +136,7 @@
<Linker>
<Add option="-m32" />
<Add library="libjackserver" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add directory="Release\bin" />
</Linker>
<ExtraCommands>


+ 3
- 3
windows/jack_netsource.cbp View File

@@ -81,7 +81,7 @@
<Linker>
<Add option="-m32" />
<Add library="libjack" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add directory="Release\bin" />
</Linker>
</Target>
@@ -102,7 +102,7 @@
<Linker>
<Add option="-m32" />
<Add library="libjack" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add directory="Debug\bin" />
</Linker>
</Target>
@@ -124,7 +124,7 @@
<Linker>
<Add option="-m32" />
<Add library="libjack" />
<Add library="libsamplerate-0" />
<Add library="libsamplerate_x86" />
<Add directory="Release\bin" />
</Linker>
</Target>


+ 4
- 3
windows/jackd.workspace View File

@@ -7,14 +7,12 @@
<Project filename="jack_netonedriver.cbp" />
<Project filename="jack_dummy.cbp" />
<Project filename="jack_netmanager.cbp" />
<Project filename="jack_audioadapter.cbp" />
<Project filename="jack_netadapter.cbp" />
<Project filename="jack_audioadapter.cbp" active="1" />
<Project filename="libjack.cbp" />
<Project filename="jack_load.cbp" />
<Project filename="jack_unload.cbp" />
<Project filename="jack_lsp.cbp" />
<Project filename="jack_latent_client.cbp" />
<Project filename="jack_netsource.cbp" active="1" />
<Project filename="jack_metro.cbp" />
<Project filename="jack_connect.cbp" />
<Project filename="jack_disconnect.cbp" />
@@ -23,5 +21,8 @@
<Project filename="jack_winmme.cbp" />
<Project filename="jack_loopback.cbp" />
<Project filename="jackd.cbp" />
<Project filename="jack_midi_latency_test.cbp" />
<Project filename="jack_netadapter.cbp" />
<Project filename="jack_netsource.cbp" />
</Workspace>
</CodeBlocks_workspace_file>

+ 1
- 1
windows/libjackserver.cbp View File

@@ -70,7 +70,7 @@
<Add directory="Debug\bin64" />
</Linker>
</Target>
<Target title="Win32 Profiling 64bits">
<Target title="Win32 Profiling 64bits">
<Option output="Release64\bin\libjackserver64" prefix_auto="1" extension_auto="1" />
<Option object_output="Release64" />
<Option type="3" />


+ 10
- 5
windows/portaudio/JackPortAudioAdapter.cpp View File

@@ -50,7 +50,7 @@ namespace Jack
int out_max = 0;

fInputDevice = Pa_GetDefaultInputDevice();
fOutputDevice = Pa_GetDefaultOutputDevice();
fOutputDevice = Pa_GetDefaultOutputDevice();

for (node = params; node; node = jack_slist_next(node))
{
@@ -104,9 +104,9 @@ namespace Jack
}

//max channels
if ( in_max == 0 )
if ( in_max == 0 && fInputDevice != paNoDevice)
in_max = fPaDevices.GetDeviceInfo ( fInputDevice )->maxInputChannels;
if ( out_max == 0 )
if ( out_max == 0 && fOutputDevice != paNoDevice)
out_max = fPaDevices.GetDeviceInfo ( fOutputDevice )->maxOutputChannels;

//effective channels
@@ -117,14 +117,19 @@ namespace Jack

//set adapter interface channels
SetInputs ( fCaptureChannels );
SetOutputs ( fPlaybackChannels );
SetOutputs ( fPlaybackChannels );
}

int JackPortAudioAdapter::Open()
{
PaError err;
PaStreamParameters inputParameters;
PaStreamParameters outputParameters;
PaStreamParameters outputParameters;
if (fInputDevice == paNoDevice && fOutputDevice == paNoDevice) {
jack_error("No input and output device!!");
return -1;
}

if ( JackAudioAdapterInterface::Open() < 0 )
return -1;


+ 7
- 5
windows/portaudio/JackPortAudioDriver.cpp View File

@@ -151,8 +151,9 @@ namespace Jack
fCaptureChannels = inchannels;
fPlaybackChannels = outchannels;

if ((err = OpenStream(buffer_size)) != paNoError) {
jack_error("Pa_OpenStream error = %s", Pa_GetErrorText(err));
err = OpenStream(buffer_size);
if (err != paNoError) {
jack_error("Pa_OpenStream error %d = %s", err, Pa_GetErrorText(err));
goto error;
}

@@ -172,7 +173,7 @@ namespace Jack

error:
JackAudioDriver::Close();
jack_error("Can't open default PortAudio device : %s", Pa_GetErrorText(err));
jack_error("Can't open default PortAudio device");
return -1;
}

@@ -219,8 +220,9 @@ error:
return -1;
}

if ((err = OpenStream(buffer_size)) != paNoError) {
jack_error("Pa_OpenStream error = %s", Pa_GetErrorText(err));
err = OpenStream(buffer_size);
if (err != paNoError) {
jack_error("Pa_OpenStream error %d = %s", err, Pa_GetErrorText(err));
return -1;
} else {
JackAudioDriver::SetBufferSize(buffer_size); // Generic change, never fails


BIN
windows/portaudio/portaudio_x86.lib View File


Loading…
Cancel
Save