change of branch
This commit is contained in:
parent
e0a0dc9ec7
commit
49968f4b82
24 changed files with 1371 additions and 0 deletions
9
asio-sys/asio-link/helpers.cpp
Normal file
9
asio-sys/asio-link/helpers.cpp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include "helpers.hpp"
|
||||
|
||||
extern "C" void destruct_AsioDrivers(AsioDrivers * a){
|
||||
a->~AsioDrivers();
|
||||
}
|
||||
|
||||
extern "C" ASIOError get_sample_rate(double * rate){
|
||||
return ASIOGetSampleRate(reinterpret_cast<ASIOSampleRate *>(rate));
|
||||
}
|
||||
10
asio-sys/asio-link/helpers.hpp
Normal file
10
asio-sys/asio-link/helpers.hpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#pragma once
|
||||
#include "asiodrivers.h"
|
||||
#include "asio.h"
|
||||
|
||||
// Helper function to call destructors from within library
|
||||
extern "C" void destruct_AsioDrivers(AsioDrivers * a);
|
||||
|
||||
// Helper function to wrap confusing preprocessor
|
||||
extern "C" ASIOError get_sample_rate(double * rate);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue