diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
commit | 0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 (patch) | |
tree | 5c67818b38a5cc2f9caa5ca7f8640ca356adf02b /externals/grill/flext/tutorial/timer1 | |
parent | bb4c7f6a245394d09dac9adfb2efb093d3d98452 (diff) |
cleaned up grill externals - replaced with svn:externals to svn.grrrr.org/ext/trunk/
svn path=/trunk/; revision=10951
Diffstat (limited to 'externals/grill/flext/tutorial/timer1')
-rw-r--r-- | externals/grill/flext/tutorial/timer1/Makefile.am | 51 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/timer1/main.cpp | 100 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/timer1/package.txt | 2 | ||||
-rwxr-xr-x | externals/grill/flext/tutorial/timer1/timer1.mcp | bin | 207765 -> 0 bytes | |||
-rw-r--r-- | externals/grill/flext/tutorial/timer1/timer1.vcproj | 177 |
5 files changed, 0 insertions, 330 deletions
diff --git a/externals/grill/flext/tutorial/timer1/Makefile.am b/externals/grill/flext/tutorial/timer1/Makefile.am deleted file mode 100644 index c5ab15f3..00000000 --- a/externals/grill/flext/tutorial/timer1/Makefile.am +++ /dev/null @@ -1,51 +0,0 @@ -# -# automake template -# added by tim blechmann -# - -NAME = timer1 - -BUILT_SOURCES = main.cpp - -EXTRA_DIST = main.cpp \ - $(NAME).mcp \ - $(NAME).vcproj - -CXXFLAGS = @CXXFLAGS@ \ - @OPT_FLAGS@ \ - @INCLUDEDIR@ \ - -I../../source \ - $(DEFS) \ - -DFLEXT_SHARED - -LDFLAGS = @DYNAMIC_LDFLAGS@ @LDFLAGS@ \ - $(patsubst %,-framework %,$(FRAMEWORKS)) - -LIBS = @LIBS@ -lflext-pd - -FRAMEWORKS = @FRAMEWORKS@ - -TARGETDIR = @TARGETDIR@ - -TARGET =$(NAME).@EXTENSION@ - -OBJECTS = $(patsubst %.cpp,./%.@OBJEXT@,$(BUILT_SOURCES)) - -SYSDIR = @SYSDIR@ - - -# ----------------------------- targets -------------------------------- - -all-local: $(OBJECTS) - $(CXX) $(LDFLAGS) ./*.@OBJEXT@ $(LIBS) -o ../$(TARGETDIR)/$(TARGET) - strip --strip-unneeded ../$(TARGETDIR)/$(TARGET) - -./%.@OBJEXT@ : %.cpp - $(CXX) -c $(CXXFLAGS) $< -o $@ - -clean-local: - rm -f ../$(TARGETDIR)/$(TARGET) - rm -f ./$(OBJECTS) - -install-exec-local: - install ../$(TARGET) $(SYSDIR)extra diff --git a/externals/grill/flext/tutorial/timer1/main.cpp b/externals/grill/flext/tutorial/timer1/main.cpp deleted file mode 100644 index d751c784..00000000 --- a/externals/grill/flext/tutorial/timer1/main.cpp +++ /dev/null @@ -1,100 +0,0 @@ -/* -flext tutorial - timer 1 - -Copyright (c) 2003 Thomas Grill (xovo@gmx.net) -For information on usage and redistribution, and for a DISCLAIMER OF ALL -WARRANTIES, see the file, "license.txt," in this distribution. - -------------------------------------------------------------------------- - -This is an example of an object using timers -*/ - -// enable flext attributes -#define FLEXT_ATTRIBUTES 1 - -// include flext header -#include <flext.h> - -// check for appropriate flext version -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 403) -#error You need at least flext version 0.4.3 -#endif - - -// define the class that stands for a pd/Max object - -class timer1: - // inherit from basic flext class - public flext_base -{ - // obligatory flext header (class name,base class name) - FLEXT_HEADER_S(timer1,flext_base,Setup) - -public: - // constructor - timer1(); - -protected: - // timers - Timer tmrA,tmrB; - - void m_getostime(float &f) { f = (float)GetOSTime(); } // method for operating system time attribute - void m_getrttime(float &f) { f = (float)GetTime(); } // method for real-time system time attribute - - void m_timerA(void *) { ToOutString(0,"Timer A"); } // timer A method - void m_timerB(void *) { ToOutString(0,"Timer B"); } // timer B method - - void m_resetA() { tmrA.Reset(); } // timer A reset - void m_resetB() { tmrB.Reset(); } // timer B reset - void m_oneshotA(int del) { tmrA.Delay(del*0.001); } // timer A one shot - void m_oneshotB(int del) { tmrB.Delay(del*0.001); } // timer B one shot - void m_periodicA(int del) { tmrA.Periodic(del*0.001); } // timer A periodic - void m_periodicB(int del) { tmrB.Periodic(del*0.001); } // timer B periodic - -private: - static void Setup(t_classid c); - - // register timer callbacks - FLEXT_CALLBACK_T(m_timerA) - FLEXT_CALLBACK_T(m_timerB) - - // register method callbacks - FLEXT_CALLGET_F(m_getostime) - FLEXT_CALLGET_F(m_getrttime) - FLEXT_CALLBACK(m_resetA) - FLEXT_CALLBACK(m_resetB) - FLEXT_CALLBACK_I(m_oneshotA) - FLEXT_CALLBACK_I(m_oneshotB) - FLEXT_CALLBACK_I(m_periodicA) - FLEXT_CALLBACK_I(m_periodicB) -}; - -// instantiate the class -FLEXT_NEW("timer1",timer1) - -// class setup function -void timer1::Setup(t_classid c) -{ - FLEXT_CADDATTR_GET(c,"ostime",m_getostime); // register attribute for OS time - FLEXT_CADDATTR_GET(c,"time",m_getrttime); // register attribute for RT time - - FLEXT_CADDMETHOD_(c,0,"resetA",m_resetA); // register reset method for timer A - FLEXT_CADDMETHOD_(c,0,"resetB",m_resetB); // register reset method for timer B - FLEXT_CADDMETHOD_(c,0,"oneshotA",m_oneshotA); // register one shot method for timer A - FLEXT_CADDMETHOD_(c,0,"oneshotB",m_oneshotB); // register one shot method for timer B - FLEXT_CADDMETHOD_(c,0,"periodicA",m_periodicA); // register periodic method for timer A - FLEXT_CADDMETHOD_(c,0,"periodicB",m_periodicB); // register periodic method for timer B -} - -// class constructor -timer1::timer1(): - tmrA(false),tmrB(false) -{ - AddInAnything("Control timers"); // add inlet for control commands - AddOutAnything("Timer output"); // add outlet for timer output - - // register methods - FLEXT_ADDTIMER(tmrA,m_timerA); // register method "m_timerA" for timer A - FLEXT_ADDTIMER(tmrB,m_timerB); // register method "m_timerB" for timer B -} diff --git a/externals/grill/flext/tutorial/timer1/package.txt b/externals/grill/flext/tutorial/timer1/package.txt deleted file mode 100644 index 4a23dcae..00000000 --- a/externals/grill/flext/tutorial/timer1/package.txt +++ /dev/null @@ -1,2 +0,0 @@ -NAME=timer1
-SRCS=main.cpp
diff --git a/externals/grill/flext/tutorial/timer1/timer1.mcp b/externals/grill/flext/tutorial/timer1/timer1.mcp Binary files differdeleted file mode 100755 index af4e978a..00000000 --- a/externals/grill/flext/tutorial/timer1/timer1.mcp +++ /dev/null diff --git a/externals/grill/flext/tutorial/timer1/timer1.vcproj b/externals/grill/flext/tutorial/timer1/timer1.vcproj deleted file mode 100644 index ba39e622..00000000 --- a/externals/grill/flext/tutorial/timer1/timer1.vcproj +++ /dev/null @@ -1,177 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioProject - ProjectType="Visual C++" - Version="7.10" - Name="timer1" - SccProjectName="timer1" - SccAuxPath="" - SccLocalPath="." - SccProvider="MSSCCI:Jalindi Igloo"> - <Platforms> - <Platform - Name="Win32"/> - </Platforms> - <Configurations> - <Configuration - Name="Debug|Win32" - OutputDirectory=".\msvc-debug" - IntermediateDirectory=".\msvc-debug" - ConfigurationType="2" - UseOfMFC="0" - ATLMinimizesCRunTimeLibraryUsage="FALSE" - CharacterSet="2"> - <Tool - Name="VCCLCompilerTool" - Optimization="0" - AdditionalIncludeDirectories="c:\programme\audio\pd\src,..\..\source" - PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PD" - BasicRuntimeChecks="3" - RuntimeLibrary="5" - UsePrecompiledHeader="2" - PrecompiledHeaderFile=".\msvc-debug/timer1.pch" - AssemblerListingLocation=".\msvc-debug/" - ObjectFile=".\msvc-debug/" - ProgramDataBaseFileName=".\msvc-debug/" - BrowseInformation="1" - BrowseInformationFile=".\msvc-debug/" - WarningLevel="3" - SuppressStartupBanner="TRUE" - DebugInformationFormat="4" - CompileAs="0"/> - <Tool - Name="VCCustomBuildTool"/> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="pd.lib flext_d-pdwin.lib" - OutputFile=".\msvc-debug/timer1.dll" - LinkIncremental="1" - SuppressStartupBanner="TRUE" - AdditionalLibraryDirectories="..\..\pd-msvc" - GenerateDebugInformation="TRUE" - ProgramDatabaseFile=".\msvc-debug/timer1.pdb" - ImportLibrary=".\msvc-debug/timer1.lib" - TargetMachine="1"/> - <Tool - Name="VCMIDLTool" - PreprocessorDefinitions="_DEBUG" - MkTypLibCompatible="TRUE" - SuppressStartupBanner="TRUE" - TargetEnvironment="1" - TypeLibraryName=".\msvc-debug/timer1.tlb" - HeaderFileName=""/> - <Tool - Name="VCPostBuildEventTool"/> - <Tool - Name="VCPreBuildEventTool"/> - <Tool - Name="VCPreLinkEventTool"/> - <Tool - Name="VCResourceCompilerTool" - PreprocessorDefinitions="_DEBUG" - Culture="3079"/> - <Tool - Name="VCWebServiceProxyGeneratorTool"/> - <Tool - Name="VCXMLDataGeneratorTool"/> - <Tool - Name="VCWebDeploymentTool"/> - <Tool - Name="VCManagedWrapperGeneratorTool"/> - <Tool - Name="VCAuxiliaryManagedWrapperGeneratorTool"/> - </Configuration> - <Configuration - Name="Release|Win32" - OutputDirectory=".\msvc" - IntermediateDirectory=".\msvc" - ConfigurationType="2" - UseOfMFC="0" - ATLMinimizesCRunTimeLibraryUsage="FALSE" - CharacterSet="2"> - <Tool - Name="VCCLCompilerTool" - Optimization="2" - InlineFunctionExpansion="1" - AdditionalIncludeDirectories="..\..\source" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PD" - StringPooling="TRUE" - RuntimeLibrary="4" - EnableFunctionLevelLinking="TRUE" - UsePrecompiledHeader="2" - PrecompiledHeaderFile=".\msvc/timer1.pch" - AssemblerListingLocation=".\msvc/" - ObjectFile=".\msvc/" - ProgramDataBaseFileName=".\msvc/" - WarningLevel="3" - SuppressStartupBanner="TRUE" - CompileAs="0"/> - <Tool - Name="VCCustomBuildTool"/> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="pd.lib flext-pdwin.lib" - OutputFile="../pd-msvc/timer1.dll" - LinkIncremental="1" - SuppressStartupBanner="TRUE" - AdditionalLibraryDirectories="..\..\pd-msvc" - ProgramDatabaseFile=".\msvc/timer1.pdb" - ImportLibrary=".\msvc/timer1.lib" - TargetMachine="1"/> - <Tool - Name="VCMIDLTool" - PreprocessorDefinitions="NDEBUG" - MkTypLibCompatible="TRUE" - SuppressStartupBanner="TRUE" - TargetEnvironment="1" - TypeLibraryName=".\msvc/timer1.tlb" - HeaderFileName=""/> - <Tool - Name="VCPostBuildEventTool"/> - <Tool - Name="VCPreBuildEventTool"/> - <Tool - Name="VCPreLinkEventTool"/> - <Tool - Name="VCResourceCompilerTool" - PreprocessorDefinitions="NDEBUG" - Culture="3079"/> - <Tool - Name="VCWebServiceProxyGeneratorTool"/> - <Tool - Name="VCXMLDataGeneratorTool"/> - <Tool - Name="VCWebDeploymentTool"/> - <Tool - Name="VCManagedWrapperGeneratorTool"/> - <Tool - Name="VCAuxiliaryManagedWrapperGeneratorTool"/> - </Configuration> - </Configurations> - <References> - </References> - <Files> - <File - RelativePath="main.cpp"> - <FileConfiguration - Name="Debug|Win32"> - <Tool - Name="VCCLCompilerTool" - Optimization="0" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;PD;$(NoInherit)" - BasicRuntimeChecks="3" - BrowseInformation="1"/> - </FileConfiguration> - <FileConfiguration - Name="Release|Win32"> - <Tool - Name="VCCLCompilerTool" - Optimization="2" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;PD;$(NoInherit)"/> - </FileConfiguration> - </File> - </Files> - <Globals> - </Globals> -</VisualStudioProject> |