Commit bcc0774a authored by IOhannes m zmoelnig's avatar IOhannes m zmoelnig

Imported Upstream version 0.2

parent 570dab19
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# Microsoft Developer Studio Project File - Name="iem_ambi" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** NICHT BEARBEITEN **
# TARGTYPE "Win32 (x86) External Target" 0x0106
CFG=iem_ambi - Win32 Debug
!MESSAGE Dies ist kein gltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und fhren Sie den Befehl
!MESSAGE
!MESSAGE NMAKE /f "iem_ambi.mak".
!MESSAGE
!MESSAGE Sie knnen beim Ausfhren von NMAKE eine Konfiguration angeben
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
!MESSAGE
!MESSAGE NMAKE /f "iem_ambi.mak" CFG="iem_ambi - Win32 Debug"
!MESSAGE
!MESSAGE Fr die Konfiguration stehen zur Auswahl:
!MESSAGE
!MESSAGE "iem_ambi - Win32 Release" (basierend auf "Win32 (x86) External Target")
!MESSAGE "iem_ambi - Win32 Debug" (basierend auf "Win32 (x86) External Target")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
!IF "$(CFG)" == "iem_ambi - Win32 Release"
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Cmd_Line "NMAKE /f makefile_win"
# PROP BASE Rebuild_Opt "/a"
# PROP BASE Target_File "makefile_win.exe"
# PROP BASE Bsc_Name "makefile_win.bsc"
# PROP BASE Target_Dir ""
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Cmd_Line "NMAKE /f makefile_win"
# PROP Rebuild_Opt "/a"
# PROP Target_File "iem_ambi.exe"
# PROP Bsc_Name "iem_ambi.bsc"
# PROP Target_Dir ""
!ELSEIF "$(CFG)" == "iem_ambi - Win32 Debug"
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Cmd_Line "NMAKE /f makefile_win"
# PROP BASE Rebuild_Opt "/a"
# PROP BASE Target_File "makefile_win.exe"
# PROP BASE Bsc_Name "makefile_win.bsc"
# PROP BASE Target_Dir ""
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Cmd_Line "NMAKE /f makefile_win"
# PROP Rebuild_Opt "/a"
# PROP Target_File "iem_ambi.exe"
# PROP Bsc_Name "iem_ambi.bsc"
# PROP Target_Dir ""
!ENDIF
# Begin Target
# Name "iem_ambi - Win32 Release"
# Name "iem_ambi - Win32 Debug"
!IF "$(CFG)" == "iem_ambi - Win32 Release"
!ELSEIF "$(CFG)" == "iem_ambi - Win32 Debug"
!ENDIF
# Begin Source File
SOURCE=.\makefile_win
# End Source File
# End Target
# End Project
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELSCHT WERDEN!
###############################################################################
Project: "iem_ambi"=.\iem_ambi.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
all: ..\iem_ambi.dll
VIS_CPP_PATH = "C:\Programme\Microsoft Visual Studio\Vc98"
PD_INST_PATH = "C:\Programme\pd"
PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include
PD_WIN_C_FLAGS = /nologo /W3 /WX /DMSW /DNT /DPD /DWIN32 /DWINDOWS /Ox -DPA_LITTLE_ENDIAN
PD_WIN_L_FLAGS = /nologo
PD_WIN_LIB = /NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel /NODEFAULTLIB:uuid \
$(VIS_CPP_PATH)\lib\libc.lib \
$(VIS_CPP_PATH)\lib\oldnames.lib \
$(VIS_CPP_PATH)\lib\kernel32.lib \
$(VIS_CPP_PATH)\lib\wsock32.lib \
$(VIS_CPP_PATH)\lib\winmm.lib \
$(PD_INST_PATH)\bin\pd.lib
SRC = ambi_decode.c \
ambi_decode2.c \
ambi_decode3.c \
ambi_decode_cube.c \
ambi_encode.c \
ambi_rot.c \
iem_ambi.c
OBJ = $(SRC:.c=.obj)
.c.obj:
cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c
..\iem_ambi.dll: $(OBJ)
link $(PD_WIN_L_FLAGS) /dll /export:iem_ambi_setup \
/out:..\iem_ambi.dll $(OBJ) $(PD_WIN_LIB)
clean:
del *.obj
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="iem_ambi"
ProjectGUID="{6A44952F-0D55-44EE-9032-928368583BEC}"
SccProjectName=""
SccLocalPath=""
Keyword="MakeFileProj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE">
<Tool
Name="VCNMakeTool"
BuildCommandLine="NMAKE /f makefile_vc7proj"
ReBuildCommandLine="NMAKE /f makefile_vc7proj /a"
Output="iem_ambi.exe"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE">
<Tool
Name="VCNMakeTool"
BuildCommandLine="NMAKE /f makefile_vc7proj"
ReBuildCommandLine="NMAKE /f makefile_vc7proj /a"
Output="iem_ambi.exe"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<File
RelativePath="iem_ambi.bsc">
</File>
<File
RelativePath="makefile_vc7proj">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
TARGET = iem_ambi
all: ..\$(TARGET).dll
VIS_CPP_PATH = "C:\Programme\Microsoft Visual Studio .NET 2003\Vc7"
VIS_SDK_PATH = "C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK"
PD_INST_PATH = "C:\Programme\pd-0.42-5"
PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include
PD_WIN_C_FLAGS = /nologo /W3 /WX /DMSW /DNT /DPD /DWIN32 /DWINDOWS /Ox -D_CRT_SECURE_NO_WARNINGS
PD_WIN_L_FLAGS = /nologo
PD_WIN_LIB = /NODEFAULTLIB:libcmt /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel32 \
$(VIS_CPP_PATH)\lib\libcmt.lib \
$(VIS_CPP_PATH)\lib\oldnames.lib \
$(VIS_SDK_PATH)\lib\kernel32.lib \
$(PD_INST_PATH)\bin\pd.lib
SRC = ambi_decode.c \
ambi_decode2.c \
ambi_decode3.c \
ambi_decode_cube.c \
ambi_encode.c \
ambi_rot.c \
iem_ambi.c
OBJ = $(SRC:.c=.obj)
.c.obj:
cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c
..\$(TARGET).dll: $(OBJ)
link $(PD_WIN_L_FLAGS) /dll /export:$(TARGET)_setup \
/out:..\$(TARGET).dll $(OBJ) $(PD_WIN_LIB)
clean:
del *.obj

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iem_ambi", "iem_ambi.vcproj", "{6A44952F-0D55-44EE-9032-928368583BEC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6A44952F-0D55-44EE-9032-928368583BEC}.Debug|Win32.ActiveCfg = Debug|Win32
{6A44952F-0D55-44EE-9032-928368583BEC}.Debug|Win32.Build.0 = Debug|Win32
{6A44952F-0D55-44EE-9032-928368583BEC}.Release|Win32.ActiveCfg = Release|Win32
{6A44952F-0D55-44EE-9032-928368583BEC}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9,00"
Name="iem_ambi"
ProjectGUID="{6A44952F-0D55-44EE-9032-928368583BEC}"
Keyword="MakeFileProj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="0"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
ATLMinimizesCRunTimeLibraryUsage="false"
>
<Tool
Name="VCNMakeTool"
BuildCommandLine="NMAKE /f makefile_vc9proj"
ReBuildCommandLine="NMAKE /f makefile_vc9proj /a"
CleanCommandLine=""
Output="iem_ambi.exe"
PreprocessorDefinitions=""
IncludeSearchPath=""
ForcedIncludes=""
AssemblySearchPath=""
ForcedUsingAssemblies=""
CompileAsManaged=""
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="0"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
ATLMinimizesCRunTimeLibraryUsage="false"
>
<Tool
Name="VCNMakeTool"
BuildCommandLine="NMAKE /f makefile_vc9proj"
ReBuildCommandLine="NMAKE /f makefile_vc9proj /a"
CleanCommandLine=""
Output="iem_ambi.exe"
PreprocessorDefinitions=""
IncludeSearchPath=""
ForcedIncludes=""
AssemblySearchPath=""
ForcedUsingAssemblies=""
CompileAsManaged=""
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<File
RelativePath="iem_ambi.bsc"
>
</File>
<File
RelativePath="makefile_vc9proj"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
TARGET = iem_ambi
all: ..\$(TARGET).dll
VIS_CPP_PATH = "C:\Program Files\Microsoft Visual Studio 9.0\VC"
VIS_SDK_PATH = "C:\Program Files\Microsoft SDKs\Windows\v6.0A"
PD_INST_PATH = "C:\Program Files\pd-0.43.0"
PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include
PD_WIN_C_FLAGS = /nologo /W3 /WX /DMSW /DNT /DPD /DWIN32 /DWINDOWS /Ox -D_CRT_SECURE_NO_WARNINGS
PD_WIN_L_FLAGS = /nologo
PD_WIN_LIB = /NODEFAULTLIB:libcmt /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel32 \
$(VIS_CPP_PATH)\lib\libcmt.lib \
$(VIS_CPP_PATH)\lib\oldnames.lib \
$(VIS_SDK_PATH)\lib\kernel32.lib \
$(PD_INST_PATH)\bin\pd.lib
SRC = ambi_decode.c \
ambi_decode2.c \
ambi_decode3.c \
ambi_decode_cube.c \
ambi_encode.c \
ambi_rot.c \
iem_ambi.c
OBJ = $(SRC:.c=.obj)
.c.obj:
cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c
..\$(TARGET).dll: $(OBJ)
link $(PD_WIN_L_FLAGS) /dll /export:$(TARGET)_setup \
/out:..\$(TARGET).dll $(OBJ) $(PD_WIN_LIB)
clean:
del *.obj
......@@ -33,6 +33,6 @@ void iem_ambi_setup(void)
ambi_decode_cube_setup();
ambi_rot_setup();
post("iem_ambi (R-1.17) library loaded! (c) Thomas Musil 11.2006");
post("iem_ambi (R-0.2) library loaded! (c) Thomas Musil 2000-2012");
post(" musil%ciem.at iem KUG Graz Austria", '@');
}

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iem_ambi", "iem_ambi.vcproj", "{6A44952F-0D55-44EE-9032-928368583BEC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6A44952F-0D55-44EE-9032-928368583BEC}.Debug|Win32.ActiveCfg = Debug|Win32
{6A44952F-0D55-44EE-9032-928368583BEC}.Debug|Win32.Build.0 = Debug|Win32
{6A44952F-0D55-44EE-9032-928368583BEC}.Release|Win32.ActiveCfg = Release|Win32
{6A44952F-0D55-44EE-9032-928368583BEC}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9,00"
Name="iem_ambi"
ProjectGUID="{6A44952F-0D55-44EE-9032-928368583BEC}"
Keyword="MakeFileProj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="0"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
ATLMinimizesCRunTimeLibraryUsage="false"
>
<Tool
Name="VCNMakeTool"
BuildCommandLine="NMAKE /f makefile_vc9proj"
ReBuildCommandLine="NMAKE /f makefile_vc9proj /a"
CleanCommandLine=""
Output="iem_ambi.exe"
PreprocessorDefinitions=""
IncludeSearchPath=""
ForcedIncludes=""
AssemblySearchPath=""
ForcedUsingAssemblies=""
CompileAsManaged=""
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="0"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
ATLMinimizesCRunTimeLibraryUsage="false"
>
<Tool
Name="VCNMakeTool"
BuildCommandLine="NMAKE /f makefile_vc9proj"
ReBuildCommandLine="NMAKE /f makefile_vc9proj /a"
CleanCommandLine=""
Output="iem_ambi.exe"
PreprocessorDefinitions=""
IncludeSearchPath=""
ForcedIncludes=""
AssemblySearchPath=""
ForcedUsingAssemblies=""
CompileAsManaged=""
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<File
RelativePath="iem_ambi.bsc"
>
</File>
<File
RelativePath="makefile_vc9proj"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
/* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2009 */
iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2012 */
#ifndef __IEMLIB_H__
#define __IEMLIB_H__
#define IS_A_NULL(atom,index) ((atom+index)->a_type == A_NULL)
#define IS_A_POINTER(atom,index) ((atom+index)->a_type == A_POINTER)
#define IS_A_FLOAT(atom,index) ((atom+index)->a_type == A_FLOAT)
#define IS_A_SYMBOL(atom,index) ((atom+index)->a_type == A_SYMBOL)
......@@ -15,6 +16,8 @@ iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2009 *
#define IS_A_SEMI(atom,index) ((atom+index)->a_type == A_SEMI)
#define IS_A_COMMA(atom,index) ((atom+index)->a_type == A_COMMA)
#define SETNULL(atom) ((atom)->a_type = A_NULL)
/* now miller's code starts :
for 4 point interpolation
for lookup tables
......@@ -53,11 +56,11 @@ extern int sys_noloadbang;
#define int32 long
#endif /* MSW */
#if defined(__FreeBSD__) || defined(__APPLE__)
#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__FreeBSD_kernel__)
#include <machine/endian.h>
#endif
#ifdef __linux__
#if defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) || defined(ANDROID)
#include <endian.h>
#endif
......@@ -100,7 +103,7 @@ union tabfudge_f
#endif
/* on 64bit systems we cannot use garray_getfloatarray... */
#if (defined __x86_64__)
#if ((defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION > 40))
# define iemarray_t t_word
# define iemarray_getarray garray_getfloatwords
# define iemarray_getfloat(pointer, index) (pointer[index].w_float)
......@@ -112,5 +115,4 @@ union tabfudge_f
# define iemarray_setfloat(pointer, index, fvalue) (pointer[index] = fvalue)
#endif
#endif
......@@ -3,20 +3,20 @@ current: all
.SUFFIXES: .pd_linux
PDSOURCE?=/usr/local/src/pd/src
INCLUDE = -I. -I$(PDSOURCE)
PD_INCLUDE = -I. -I$(PDSOURCE)
LDFLAGS = -export-dynamic -shared
LIB = -ldl -lm -lpthread
STRIP=strip
PD_LDFLAGS = -Wl,--export-dynamic -shared -fPIC
LIB = -lc -lm
#select either the DBG and OPT compiler flags below:
CFLAGS = -DPD -DUNIX \
PD_CFLAGS = -DPD -DUNIX \
-W -Wno-unused -Wno-parentheses -Wno-switch \
-O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing \
-funroll-loops -fomit-frame-pointer -fno-strict-aliasing \
-DDL_OPEN -fPIC
CFLAGS="-O6"
SYSTEM = $(shell uname -m)
# the sources
......@@ -39,17 +39,16 @@ OBJ = $(SRC:.c=.o)
#
clean:
-rm ../$(TARGET)
-rm *.o
-rm -f ../$(TARGET)
-rm -f *.o
all: $(OBJ)
@echo :: $(OBJ)
$(LD) $(LDFLAGS) -o $(TARGET) *.o $(LIB)
$(STRIP) --strip-unneeded $(TARGET)
$(CC) $(PD_LDFLAGS) $(LDFLAGS) -o $(TARGET) *.o $(LIB)
mv $(TARGET) ..
$(OBJ) : %.o : %.c
$(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c
$(CC) $(PD_CFLAGS) $(CFLAGS) $(PD_INCLUDE) $(INCLUDE) -c -o $*.o $*.c
......
TARGET = iem_ambi
all: ..\$(TARGET).dll
VIS_CPP_PATH = "C:\Program Files\Microsoft Visual Studio 9.0\VC"
VIS_SDK_PATH = "C:\Program Files\Microsoft SDKs\Windows\v6.0A"
PD_INST_PATH = "C:\Program Files\pd-0.43.0"
PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include
PD_WIN_C_FLAGS = /nologo /W3 /WX /DMSW /DNT /DPD /DWIN32 /DWINDOWS /Ox -D_CRT_SECURE_NO_WARNINGS
PD_WIN_L_FLAGS = /nologo
PD_WIN_LIB = /NODEFAULTLIB:libcmt /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel32 \
$(VIS_CPP_PATH)\lib\libcmt.lib \
$(VIS_CPP_PATH)\lib\oldnames.lib \
$(VIS_SDK_PATH)\lib\kernel32.lib \
$(PD_INST_PATH)\bin\pd.lib
SRC = ambi_decode.c \
ambi_decode2.c \
ambi_decode3.c \
ambi_decode_cube.c \
ambi_encode.c \
ambi_rot.c \
iem_ambi.c
OBJ = $(SRC:.c=.obj)
.c.obj:
cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c
..\$(TARGET).dll: $(OBJ)
link $(PD_WIN_L_FLAGS) /dll /export:$(TARGET)_setup \
/out:..\$(TARGET).dll $(OBJ) $(PD_WIN_LIB)
clean:
del *.obj
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment