forked from libpd/libpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NuGet packages for .NET and Mono.
- Loading branch information
Showing
9 changed files
with
98 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<package > | ||
<metadata> | ||
<id>$id$</id> | ||
<version>$version$</version> | ||
<title>$title$</title> | ||
<authors>Peter Brinkmann & the libpd team</authors> | ||
<owners>Peter Brinkmann & the libpd team</owners> | ||
<licenseUrl>https://github.com/libpd/libpd/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>https://github.com/libpd/libpd</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Pure Data as an embeddable audio synthesis library.</description> | ||
<releaseNotes>First release.</releaseNotes> | ||
<copyright>Copyright 2012 - 2016</copyright> | ||
<tags>C# .NET Mono audio sound</tags> | ||
</metadata> | ||
<files> | ||
<file src="readme.txt" target="" /> | ||
<!-- Windows --> | ||
<file src="..\libs\libpdcsharp-32.dll" target="native\UnmanagedLibraries\Windows\x86\libpdcsharp.dll" /> | ||
<file src="..\libs\pthreadGC2-64.dll" target="native\UnmanagedLibraries\Windows\x64\libpdcsharp.dll" /> | ||
<file src="..\libs\pthreadGC2-32.dll" target="native\UnmanagedLibraries\Windows\x86\pthreadGC2.dll" /> | ||
<file src="..\libs\pthreadGC2-64.dll" target="native\UnmanagedLibraries\Windows\x64\pthreadGC2.dll" /> | ||
<!-- Linux --> | ||
<file src="..\libs\libpdcsharp.x86.so" target="native\UnmanagedLibraries\Linux\x86\libpdcsharp.so" /> | ||
<file src="..\libs\libpdcsharp.amd64.so" target="native\UnmanagedLibraries\Linux\amd64\libpdcsharp.so" /> | ||
<file src="..\libs\libpdcsharp.armv6l.so" target="native\UnmanagedLibraries\Linux\armv6l\libpdcsharp.so" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
LibPD for .NET and Mono | ||
----------------------- | ||
|
||
Thank you for using the NuGet package for LibPD for .NET and Mono. | ||
|
||
The managed DLL needs a native shared library, that you must include | ||
in your project. Depending on your platform, choose the correct one | ||
from the folder packages/LibPDBinding/native/UnmanagedLibraries in | ||
your solution or project root. | ||
|
||
Add the correct shared library to your project, for Windows add | ||
pthreadGC2.dll as well. | ||
|
||
Change the properties for the files after including: | ||
- Set "Build Action" to "None", if not set to this | ||
- Set "Copy to Output Directory" to "Copy if newer" | ||
|
||
Currently included binaries for: | ||
- Windows x86 and amd64 | ||
- Linux x86, amd64, armhf | ||
|
||
If your platform is not included in the list, you must build it | ||
yourself from source: https://github.com/libpd/libpd | ||
|
||
Bugtracker: https://github.com/libpd/libpd/issues | ||
Questions: http://stackoverflow.com/questions/tagged/libpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,23 @@ | |
* Copyright(c) 2016 Thomas Mayer<[email protected]> | ||
*/ | ||
using System; | ||
using System.Linq; | ||
using JackSharp; | ||
using NAudio.CoreAudioApi; | ||
using NAudio.Jack; | ||
using NAudio.Wave; | ||
|
||
namespace LibPdBindingNaudio | ||
{ | ||
class Program | ||
class Program | ||
{ | ||
static bool useJack | ||
{ | ||
get { return true; } | ||
} | ||
static bool useJack; | ||
|
||
static void Main(string[] args) | ||
{ | ||
if (args.Any() && args.First() == "jack") { | ||
useJack = true; | ||
} | ||
if (useJack) { | ||
PlayWithJack(); | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters