Alien-RtMidi
view release on metacpan or search on metacpan
Changes
LICENSE
MANIFEST
META.json
META.yml
Makefile.PL
README
alienfile
dist.ini
lib/Alien/RtMidi.pm
patch/0001-Add-a-method-to-reset-the-ok-flag-and-clear-the-erro.patch
t/alien_rtmidi.t
t/author-critic.t
t/author-pod-syntax.t
t/release-kwalitee.t
version => qr/([0-9\.]+)/,
);
plugin 'Extract' => 'tar.gz';
my @config = ( '--enable-static' );
push @config, 'LDFLAGS="-std=gnu++11" CXXFLAGS="-std=gnu++11" --with-winmm' if $CYG;
patch sub {
my $build = shift;
return unless $build->runtime_prop->{version} =~ /^6\.0/;
my $patch = $build->install_prop->{patch} . '/0001-Add-a-method-to-reset-the-ok-flag-and-clear-the-erro.patch';
my $binary = ( $WIN || $CYG ) ? '--binary' : '';
system( "patch $binary -p1 < $patch" );
};
plugin $WIN
? 'Build::CMake'
: 'Build::Autoconf';
build $WIN
? [ [ '%{cmake3}', @{ meta->prop->{plugin_build_cmake}->{args} }, '-S', '.', '-B', 'build', '-DRTMIDI_BUILD_TESTING=0' ], '%{cmake3} --build build', '%{cmake3} --install build' ]
patch/0001-Add-a-method-to-reset-the-ok-flag-and-clear-the-erro.patch view on Meta::CPAN
From 4aae9a43deacec4c5cf27870dfd068a8d2a87981 Mon Sep 17 00:00:00 2001
From: Stephane Albanese <stephane.albanese@arturia.com>
Date: Wed, 13 Sep 2023 20:02:15 +0200
Subject: [PATCH] Add a method to reset the ok flag and clear the error message
---
rtmidi_c.cpp | 36 +++++++++++++++++++++---------------
rtmidi_c.h | 7 +++++++
2 files changed, 28 insertions(+), 15 deletions(-)
diff --git a/rtmidi_c.cpp b/rtmidi_c.cpp
index 10835b8..f7ecbdf 100644
--- a/rtmidi_c.cpp
+++ b/rtmidi_c.cpp
patch/0001-Add-a-method-to-reset-the-ok-flag-and-clear-the-erro.patch view on Meta::CPAN
+#define strdup _strdup
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -135,6 +139,9 @@ RTMIDIAPI enum RtMidiApi rtmidi_compiled_api_by_name(const char *name);
//! \internal Report an error.
RTMIDIAPI void rtmidi_error (enum RtMidiErrorType type, const char* errorString);
+//! \brief Resets the ok flag and the error message.
+RTMIDIAPI void rtmidi_clear_error (RtMidiPtr device);
+
/*! \brief Open a MIDI port.
*
* \param port Must be greater than 0
--
2.47.1
( run in 0.253 second using v1.01-cache-2.11-cpan-94b05bcf43c )