diff options
Diffstat (limited to '3rdparty/portmidi/pm_csharp')
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/README.txt | 20 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/AssemblyInfo.cpp | 40 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/ReadMe.txt | 31 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/Stdafx.cpp | 5 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/Stdafx.h | 7 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/app.ico | bin | 1078 -> 0 bytes | |||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/app.rc | 63 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.cpp | 6 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.h | 53 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.vcproj | 260 | ||||
-rw-r--r-- | 3rdparty/portmidi/pm_csharp/pm_managed/resource.h | 3 |
11 files changed, 0 insertions, 488 deletions
diff --git a/3rdparty/portmidi/pm_csharp/README.txt b/3rdparty/portmidi/pm_csharp/README.txt deleted file mode 100644 index 06a1ad4e390..00000000000 --- a/3rdparty/portmidi/pm_csharp/README.txt +++ /dev/null @@ -1,20 +0,0 @@ -This code was offered by Aaron Oxford as is. The pm_managed directory contains the code. If you develop a more complete C# wrapper for PortMidi, please consider contributing your code to the project. -RBD - ----- from Aaron Oxford ---- - -I've attached the managed C++ project which I've inserted into my 2005 version of PortMIDI's VS solution. I wouldn't think the functions I've implemented would have changed so it all should still work with the latest version of PM. Obviously you won't want to permanently embed this since it means the whole solution can only be built under VS2005, but it's easy for a VS2005 user to insert the project after the solution is converted or even just build it separately. - -Making the managed wrapper turned out to be dead easy in the end (it was more of a battle finding the correct build settings & SDK's and learning to configure VS than anything else). Anyone wanting to use something I've not implemented yet simply needs to add more stubs like this - - int Pm_Initialize() - { - ::Pm_Initialize(); - return 0; - } - -to the code. To call from C# it's just a matter of - - ManagedPortMIDI mpm = new ManagedPortMIDI(); - int err = mpm.Pm_Initialize(); - -Anyway as the little code example above indicates, the support really is basic and more likely than not to break at the first hint of something unexpected. As I said, I'd be happy to contribute but I don't think there's much to contribute yet. :-) diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/AssemblyInfo.cpp b/3rdparty/portmidi/pm_csharp/pm_managed/AssemblyInfo.cpp deleted file mode 100644 index 84033ec021d..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/AssemblyInfo.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "stdafx.h" - -using namespace System; -using namespace System::Reflection; -using namespace System::Runtime::CompilerServices; -using namespace System::Runtime::InteropServices; -using namespace System::Security::Permissions; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// -[assembly:AssemblyTitleAttribute("pm_managed")]; -[assembly:AssemblyDescriptionAttribute("")]; -[assembly:AssemblyConfigurationAttribute("")]; -[assembly:AssemblyCompanyAttribute("Innovative Computer Solutions")]; -[assembly:AssemblyProductAttribute("pm_managed")]; -[assembly:AssemblyCopyrightAttribute("Copyright (c) Innovative Computer Solutions 2006")]; -[assembly:AssemblyTrademarkAttribute("")]; -[assembly:AssemblyCultureAttribute("")]; - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the value or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly:AssemblyVersionAttribute("1.0.*")]; - -[assembly:ComVisible(false)]; - -[assembly:CLSCompliantAttribute(true)]; - -[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)]; diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/ReadMe.txt b/3rdparty/portmidi/pm_csharp/pm_managed/ReadMe.txt deleted file mode 100644 index b01b06306cc..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/ReadMe.txt +++ /dev/null @@ -1,31 +0,0 @@ -======================================================================== - DYNAMIC LINK LIBRARY : pm_managed Project Overview -======================================================================== - -AppWizard has created this pm_managed DLL for you. - -This file contains a summary of what you will find in each of the files that -make up your pm_managed application. - -pm_managed.vcproj - This is the main project file for VC++ projects generated using an Application Wizard. - It contains information about the version of Visual C++ that generated the file, and - information about the platforms, configurations, and project features selected with the - Application Wizard. - -pm_managed.cpp - This is the main DLL source file. - -pm_managed.h - This file contains a class declaration. - -AssemblyInfo.cpp - Contains custom attributes for modifying assembly metadata. - -///////////////////////////////////////////////////////////////////////////// -Other notes: - -AppWizard uses "TODO:" to indicate parts of the source code you -should add to or customize. - -///////////////////////////////////////////////////////////////////////////// diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/Stdafx.cpp b/3rdparty/portmidi/pm_csharp/pm_managed/Stdafx.cpp deleted file mode 100644 index de4058cb399..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/Stdafx.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// pm_managed.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/Stdafx.h b/3rdparty/portmidi/pm_csharp/pm_managed/Stdafx.h deleted file mode 100644 index 3cc4c24ef9f..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/Stdafx.h +++ /dev/null @@ -1,7 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, -// but are changed infrequently - -#pragma once - - diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/app.ico b/3rdparty/portmidi/pm_csharp/pm_managed/app.ico Binary files differdeleted file mode 100644 index 3a5525fd794..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/app.ico +++ /dev/null diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/app.rc b/3rdparty/portmidi/pm_csharp/pm_managed/app.rc deleted file mode 100644 index 41481bfc263..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/app.rc +++ /dev/null @@ -1,63 +0,0 @@ -// Microsoft Visual C++ generated resource script. -// -#include "resource.h" - -#define APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources - - -///////////////////////////////////////////////////////////////////////////// -// -// Icon -// - -// Icon placed first or with lowest ID value becomes application icon - -LANGUAGE 9, 3 -#pragma code_page(1252) -1 ICON "app.ico" - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -1 TEXTINCLUDE -BEGIN - "resource.h\0" - "\0" -END - -2 TEXTINCLUDE -BEGIN - "#include ""afxres.h""\r\n" - "\0" -END - -3 TEXTINCLUDE -BEGIN - "\0" -END - -#endif // APSTUDIO_INVOKED - -///////////////////////////////////////////////////////////////////////////// - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.cpp b/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.cpp deleted file mode 100644 index 5389314e613..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.cpp +++ /dev/null @@ -1,6 +0,0 @@ -// This is the main DLL file. - -#include "stdafx.h" - -#include "pm_managed.h" - diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.h b/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.h deleted file mode 100644 index 21898368ec8..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.h +++ /dev/null @@ -1,53 +0,0 @@ -// pm_managed.h - -#pragma once - -#include "portmidi.h" - -using namespace System; - -namespace pm_managed { - - - public ref class MpmDeviceInfo - { - public: - int structVersion; - System::String^ interf; /* underlying MIDI API, e.g. MMSystem or DirectX */ - System::String^ name; /* device name, e.g. USB MidiSport 1x1 */ - bool input; /* true iff input is available */ - bool output; /* true iff output is available */ - int opened; /* used by generic PortMidi code to do error checking on arguments */ - - MpmDeviceInfo(const PmDeviceInfo* info) - { - structVersion = info->structVersion; - input = (info->input != 0); - output = (info->output != 0); - opened = info->opened; - - interf = gcnew System::String(info->interf); - name = gcnew System::String(info->name); - } - }; - - public ref class ManagedPortMIDI - { - public: - int Pm_Initialize() - { - ::Pm_Initialize(); - return 0; - } - - int Pm_CountDevices() - { - return ::Pm_CountDevices(); - } - - MpmDeviceInfo^ Pm_GetDeviceInfo(int id) - { - return gcnew MpmDeviceInfo(::Pm_GetDeviceInfo(id)); - } - }; -} diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.vcproj b/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.vcproj deleted file mode 100644 index 4ce2052fe35..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/pm_managed.vcproj +++ /dev/null @@ -1,260 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioProject - ProjectType="Visual C++" - Version="8.00" - Name="pm_managed" - ProjectGUID="{65AABD9A-F5E3-4A30-8BC3-9C732B5447CF}" - RootNamespace="pm_managed" - Keyword="ManagedCProj" - > - <Platforms> - <Platform - Name="Win32" - /> - </Platforms> - <ToolFiles> - </ToolFiles> - <Configurations> - <Configuration - Name="Debug|Win32" - OutputDirectory="$(SolutionDir)pm_managed\$(ConfigurationName)" - IntermediateDirectory="$(ConfigurationName)" - ConfigurationType="2" - CharacterSet="1" - ManagedExtensions="1" - > - <Tool - Name="VCPreBuildEventTool" - /> - <Tool - Name="VCCustomBuildTool" - /> - <Tool - Name="VCXMLDataGeneratorTool" - /> - <Tool - Name="VCWebServiceProxyGeneratorTool" - /> - <Tool - Name="VCMIDLTool" - /> - <Tool - Name="VCCLCompilerTool" - Optimization="0" - AdditionalIncludeDirectories="../pm_common" - PreprocessorDefinitions="WIN32;_DEBUG" - RuntimeLibrary="3" - UsePrecompiledHeader="2" - WarningLevel="3" - DebugInformationFormat="3" - /> - <Tool - Name="VCManagedResourceCompilerTool" - /> - <Tool - Name="VCResourceCompilerTool" - /> - <Tool - Name="VCPreLinkEventTool" - /> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="$(NoInherit) winmm.lib ..\pm_win\Debug\portmidi.lib ..\porttime\Debug\porttime.lib ..\pm_win\Debug\pm_dll.lib" - LinkIncremental="2" - GenerateDebugInformation="true" - AssemblyDebug="1" - TargetMachine="1" - /> - <Tool - Name="VCALinkTool" - /> - <Tool - Name="VCManifestTool" - /> - <Tool - Name="VCXDCMakeTool" - /> - <Tool - Name="VCBscMakeTool" - /> - <Tool - Name="VCFxCopTool" - /> - <Tool - Name="VCAppVerifierTool" - /> - <Tool - Name="VCWebDeploymentTool" - /> - <Tool - Name="VCPostBuildEventTool" - /> - </Configuration> - <Configuration - Name="Release|Win32" - OutputDirectory="$(SolutionDir)pm_managed\$(ConfigurationName)" - IntermediateDirectory="$(ConfigurationName)" - ConfigurationType="2" - CharacterSet="1" - ManagedExtensions="1" - WholeProgramOptimization="1" - > - <Tool - Name="VCPreBuildEventTool" - /> - <Tool - Name="VCCustomBuildTool" - /> - <Tool - Name="VCXMLDataGeneratorTool" - /> - <Tool - Name="VCWebServiceProxyGeneratorTool" - /> - <Tool - Name="VCMIDLTool" - /> - <Tool - Name="VCCLCompilerTool" - FavorSizeOrSpeed="1" - AdditionalIncludeDirectories="../pm_common" - PreprocessorDefinitions="WIN32;NDEBUG" - RuntimeLibrary="2" - UsePrecompiledHeader="2" - WarningLevel="3" - DebugInformationFormat="0" - /> - <Tool - Name="VCManagedResourceCompilerTool" - /> - <Tool - Name="VCResourceCompilerTool" - /> - <Tool - Name="VCPreLinkEventTool" - /> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="$(NoInherit) winmm.lib ..\pm_win\Release\portmidi.lib ..\porttime\Release\porttime.lib ..\pm_win\Release\pm_dll.lib" - LinkIncremental="1" - ManifestFile="$(OutDir)\pm_managed.dll.manifest" - GenerateDebugInformation="false" - TargetMachine="1" - /> - <Tool - Name="VCALinkTool" - /> - <Tool - Name="VCManifestTool" - OutputManifestFile="$(OutDir)\pm_managed.dll.manifest" - /> - <Tool - Name="VCXDCMakeTool" - /> - <Tool - Name="VCBscMakeTool" - /> - <Tool - Name="VCFxCopTool" - /> - <Tool - Name="VCAppVerifierTool" - /> - <Tool - Name="VCWebDeploymentTool" - /> - <Tool - Name="VCPostBuildEventTool" - CommandLine="rem mt.exe –manifest Release\pm_managed.dll.manifest -outputresource:Release\pm_managed.dll;2" - /> - </Configuration> - </Configurations> - <References> - <AssemblyReference - RelativePath="System.dll" - AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" - /> - <AssemblyReference - RelativePath="System.Data.dll" - AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86" - /> - <AssemblyReference - RelativePath="System.XML.dll" - AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" - /> - </References> - <Files> - <Filter - Name="Source Files" - Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" - UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" - > - <File - RelativePath=".\AssemblyInfo.cpp" - > - </File> - <File - RelativePath=".\pm_managed.cpp" - > - </File> - <File - RelativePath=".\Stdafx.cpp" - > - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - UsePrecompiledHeader="1" - /> - </FileConfiguration> - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCLCompilerTool" - UsePrecompiledHeader="1" - /> - </FileConfiguration> - </File> - </Filter> - <Filter - Name="Header Files" - Filter="h;hpp;hxx;hm;inl;inc;xsd" - UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" - > - <File - RelativePath=".\pm_managed.h" - > - </File> - <File - RelativePath=".\resource.h" - > - </File> - <File - RelativePath=".\Stdafx.h" - > - </File> - </Filter> - <Filter - Name="Resource Files" - Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" - UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" - > - <File - RelativePath=".\app.ico" - > - </File> - <File - RelativePath=".\app.rc" - > - </File> - </Filter> - <File - RelativePath=".\ReadMe.txt" - > - </File> - </Files> - <Globals> - </Globals> -</VisualStudioProject> diff --git a/3rdparty/portmidi/pm_csharp/pm_managed/resource.h b/3rdparty/portmidi/pm_csharp/pm_managed/resource.h deleted file mode 100644 index d5ac7c42aa0..00000000000 --- a/3rdparty/portmidi/pm_csharp/pm_managed/resource.h +++ /dev/null @@ -1,3 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by app.rc |