Skip to content

Commit

Permalink
Add test audio file to the repo
Browse files Browse the repository at this point in the history
External storage was unreliable
  • Loading branch information
Kryptos-FR committed Jul 14, 2022
1 parent 2a151e5 commit 7e94ecf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,6 @@ jobs:
with:
name: shards-linux ${{ steps.setup.outputs.build-type }}
path: build
- name: Get sample files
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
command: |
mkdir external && cd external
wget -nv https://bafybeifsdqdnhjk4triskonqqin2jvylfcwbdqhvrpsc4oxjgbwgle7ipe.ipfs.dweb.link -O Ode_to_Joy.ogg
- name: Test
env:
RUST_BACKTRACE: 1
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@ jobs:
with:
name: shards-macos ${{ steps.setup.outputs.build-type }}
path: build
- name: Get sample files
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
command: |
mkdir external && cd external
wget -nv https://bafybeifsdqdnhjk4triskonqqin2jvylfcwbdqhvrpsc4oxjgbwgle7ipe.ipfs.dweb.link -O Ode_to_Joy.ogg
- name: Test
env:
RUST_BACKTRACE: 1
Expand Down
8 changes: 4 additions & 4 deletions src/tests/audio.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(defmesh main)

(defloop play-files
(Audio.ReadFile "../../external/Ode_to_Joy.ogg" :From 1.0 :To 1.023219954648526)
(Audio.ReadFile "./data/Ode_to_Joy.ogg" :From 1.0 :To 1.023219954648526)
(Log))

(schedule main play-files)
Expand All @@ -13,7 +13,7 @@
(run main)

(defloop play-file-fft
(Audio.ReadFile "../../external/Ode_to_Joy.ogg" :Channels 1 :From 5.0 :To 6.0)
(Audio.ReadFile "./data/Ode_to_Joy.ogg" :Channels 1 :From 5.0 :To 6.0)
(DSP.FFT) = .freq-domain
(DSP.IFFT :Audio true)
(Audio.WriteFile "example-fft.wav" :Channels 1)
Expand All @@ -27,7 +27,7 @@
(run main)

;; (defloop play-file-dwt
;; (Audio.ReadFile "../../external/Ode_to_Joy.ogg" :Channels 1 :From 5.0 :To 6.0)
;; (Audio.ReadFile "./data/Ode_to_Joy.ogg" :Channels 1 :From 5.0 :To 6.0)
;; (DSP.Wavelet)
;; (DSP.InverseWavelet)
;; (Audio.WriteFile "example-dwt.wav" :Channels 1))
Expand All @@ -44,7 +44,7 @@

(defloop device-test
(Audio.Device)
(Audio.Channel :Shards (-> (Audio.ReadFile "../../external/Ode_to_Joy.ogg"
(Audio.Channel :Shards (-> (Audio.ReadFile "./data/Ode_to_Joy.ogg"
:Channels 2
:From 4.0 :To 6.0))))

Expand Down
Binary file added src/tests/data/Ode_to_Joy.ogg
Binary file not shown.

0 comments on commit 7e94ecf

Please sign in to comment.