wip : refactoring

This commit is contained in:
Georgi Gerganov
2022-05-29 09:45:17 +03:00
parent 05f1309dcb
commit 6bbe8ecec3
8 changed files with 84 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
ggwave.so
README.rst
ggwave.bycython.cpp
ggwave.cpython-36m-x86_64-linux-gnu.so
ggwave.cpython-*-x86_64-linux-gnu.so
ggwave/
ggwave.egg-info/
dist/

View File

@@ -30,14 +30,21 @@ cdef extern from "ggwave.h" nogil:
GGWAVE_TX_PROTOCOL_CUSTOM_8,
GGWAVE_TX_PROTOCOL_CUSTOM_9
ctypedef enum ggwave_OperatingMode:
GGWAVE_OPERATING_MODE_BOTH_RX_AND_TX,
GGWAVE_OPERATING_MODE_ONLY_RX,
GGWAVE_OPERATING_MODE_ONLY_TX,
ctypedef struct ggwave_Parameters:
int payloadLength
float sampleRateInp
float sampleRateOut
float sampleRate
int samplesPerFrame
float soundMarkerThreshold
ggwave_SampleFormat sampleFormatInp
ggwave_SampleFormat sampleFormatOut
ggwave_OperatingMode operatingMode
ctypedef int ggwave_Instance