-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Martmists <martmists@gmail.com>
- Loading branch information
1 parent
44880bf
commit 358111e
Showing
138 changed files
with
1,377 additions
and
4,034 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,6 +218,5 @@ dmypy.json | |
cython_debug/ | ||
|
||
### Custom | ||
python.def | ||
.python-version | ||
/kaudio/ | ||
/src/nativeInterop/cinterop/numpy.def |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
kotlin.code.style=official | ||
kotlin.mpp.enableGranularSourceSetsMetadata=true | ||
kotlin.native.enableDependencyPropagation=false | ||
kotlin.mpp.stability.nowarn=true | ||
kotlin.native.binary.sourceInfoType=libbacktrace | ||
kotlin.native.cacheKind.linuxX64=none | ||
org.gradle.jvmargs=-Xmx1G -XX:MaxMetaspaceSize=512m |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-7.5-20220429115913+0000-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
plugins { | ||
`cpp-library` | ||
`cpp-unit-test` | ||
} | ||
|
||
library { | ||
linkage.set(listOf(Linkage.STATIC)) | ||
} | ||
|
||
unitTest { | ||
targetMachines.set(listOf(machines.linux.x86_64)) | ||
} | ||
|
||
val build by tasks.getting { | ||
dependsOn("assembleRelease") | ||
dependsOn("assembleDebug") | ||
} |
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,42 @@ | ||
#include "shiftarray.h" | ||
#include <cstring> | ||
#include <cstdlib> | ||
#include <cstdio> | ||
|
||
inline int array_index(shift_array_t* array, int index) { | ||
int res = ((int)array->offset + index); | ||
if (res < 0) { | ||
res += array->size; | ||
} | ||
return res % array->size; | ||
} | ||
|
||
shift_array_t* array_alloc(unsigned int size) { | ||
shift_array_t* array = (shift_array_t*)malloc(sizeof(shift_array_t)); | ||
array->size = size; | ||
array->offset = 0; | ||
array->data = (float*)malloc(size * sizeof(float)); | ||
memset(array->data, 0, size * sizeof(float)); | ||
return array; | ||
} | ||
|
||
void array_free(shift_array_t* array) { | ||
free(array->data); | ||
free(array); | ||
} | ||
|
||
float array_get(shift_array_t* array, int index) { | ||
return array->data[array_index(array, index)]; | ||
} | ||
|
||
void array_set(shift_array_t* array, int index, float value) { | ||
array->data[array_index(array, index)] = value; | ||
} | ||
|
||
void array_shift(shift_array_t* array, int num) { | ||
array->offset = array_index(array, num); | ||
} | ||
|
||
void array_clear(shift_array_t* array) { | ||
memset(array->data, 0, array->size * sizeof(float)); | ||
} |
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,22 @@ | ||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct { | ||
unsigned int size; | ||
int offset; | ||
float* data; | ||
} shift_array_t; | ||
|
||
shift_array_t* array_alloc(unsigned int size); | ||
void array_free(shift_array_t* array); | ||
float array_get(shift_array_t* array, int index); | ||
void array_set(shift_array_t* array, int index, float value); | ||
void array_shift(shift_array_t* array, int num); | ||
void array_clear(shift_array_t* array); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
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,11 @@ | ||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "shiftarray.h" | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.