mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 08:33:36 +02:00
Converted CRLF to LF.
This commit is contained in:
@@ -1,40 +1,40 @@
|
||||
#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)];
|
||||
#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)];
|
||||
|
@@ -1,31 +1,31 @@
|
||||
========================================================================
|
||||
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.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
========================================================================
|
||||
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.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@@ -1,5 +1,5 @@
|
||||
// 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"
|
||||
// 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"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently,
|
||||
// but are changed infrequently
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently,
|
||||
// but are changed infrequently
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
|
@@ -1,63 +1,63 @@
|
||||
// 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
|
||||
|
||||
// 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
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// This is the main DLL file.
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "pm_managed.h"
|
||||
|
||||
// This is the main DLL file.
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "pm_managed.h"
|
||||
|
||||
|
@@ -1,53 +1,53 @@
|
||||
// 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));
|
||||
}
|
||||
};
|
||||
}
|
||||
// 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));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@@ -1,3 +1,3 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by app.rc
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by app.rc
|
||||
|
Reference in New Issue
Block a user