Skip to content

Commit

Permalink
Merge pull request #951 from pasdeloup/pr-add_soxr_package
Browse files Browse the repository at this point in the history
Add Soxr package 0.3.6
  • Loading branch information
mhsmith committed Sep 5, 2023
2 parents f067806 + 7841d0d commit e0e5899
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions server/pypi/packages/soxr/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package:
name: soxr
version: "0.3.6"
17 changes: 17 additions & 0 deletions server/pypi/packages/soxr/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import unittest

class TestSoxr(unittest.TestCase):

def test_basic(self):
import soxr

inputSamplerate = 48000
targetSamplerate = 16000

x = [1.0] * inputSamplerate
y = soxr.resample(
x, # 1D(mono) or 2D(frames, channels) array input
inputSamplerate, # input samplerate
targetSamplerate # target samplerate
)
self.assertEqual(y.size, targetSamplerate)
2 changes: 1 addition & 1 deletion target/build-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ LDFLAGS+=" -lm"

case $abi in
armeabi-v7a)
CFLAGS+=" -march=armv7-a -mthumb -mfpu=vfpv3-d16"
CFLAGS+=" -march=armv7-a -mthumb"
;;
x86)
# -mstackrealign is unnecessary because it's included in the clang launcher script
Expand Down

0 comments on commit e0e5899

Please sign in to comment.