Skip to content

Commit ff733ff

Browse files
authored
Updating to latest FileIO (#42)
1 parent a644a17 commit ff733ff

File tree

11 files changed

+76
-553
lines changed

11 files changed

+76
-553
lines changed

.appveyor.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/Tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
tags: '*'
9+
10+
11+
jobs:
12+
test:
13+
timeout-minutes: 30
14+
name: ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
version:
20+
- '1.3'
21+
- '1.4'
22+
- '1.5'
23+
- '1'
24+
- 'nightly'
25+
os:
26+
- ubuntu-latest
27+
- macOS-latest
28+
- windows-latest
29+
arch:
30+
- x64
31+
- x86
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: julia-actions/setup-julia@v1
36+
with:
37+
version: ${{ matrix.version }}
38+
- uses: julia-actions/julia-buildpkg@v1
39+
- uses: julia-actions/julia-runtest@v1
40+
- uses: julia-actions/julia-processcoverage@v1
41+
- uses: codecov/codecov-action@v1
42+
with:
43+
file: lcov.info

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ deps/deps.jl
55
deps/build.log
66
*.cov
77
coverage
8+
.DS_Store
9+
Manifest.toml
10+
test/Manifest.toml

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

Manifest.toml

Lines changed: 0 additions & 236 deletions
This file was deleted.

Project.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ SampledSignals = "bd7594eb-a658-542f-9e75-4c4d8908c167"
1111
libsndfile_jll = "5bf562c0-5a39-5b4f-b979-f64ac885830c"
1212

1313
[compat]
14-
FileIO = "1"
14+
FileIO = "1.10"
1515
SampledSignals = "2.1.0"
1616
julia = "1.3"
1717
libsndfile_jll = "1.0.28"
18+
19+
[extras]
20+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
21+
22+
[targets]
23+
test = ["Test"]

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
LibSndFile.jl
22
=============
3-
[![Build Status](https://travis-ci.org/JuliaAudio/LibSndFile.jl.svg?branch=master)](https://travis-ci.org/JuliaAudio/LibSndFile.jl)
4-
[![Build status](https://ci.appveyor.com/api/projects/status/1wdo413vf375i1vr/branch/master?svg=true)](https://ci.appveyor.com/project/ssfrr/libsndfile-jl/branch/master)
3+
![CI](https://github.com/JuliaAudio/LibSndFile.jl/workflows/Tests/badge.svg)
54
[![codecov.io](https://codecov.io/github/JuliaAudio/LibSndFile.jl/coverage.svg?branch=master)](https://codecov.io/github/JuliaAudio/LibSndFile.jl?branch=master)
65

76
LibSndFile.jl is a wrapper for [libsndfile](http://www.mega-nerd.com/libsndfile/), and supports a wide variety of file and sample formats. The package uses the [FileIO](https://github.com/JuliaIO/FileIO.jl) `load` and `save` interface to automatically figure out the file type of the file to be opened, and the file contents are represented as a `SampleBuf`. For streaming I/O we support FileIO's `loadstreaming` and `savestreaming` functions as well. The results are represented as `SampleSource` (for reading), or `SampleSink` (for writing) subtypes. These buffer and stream types are defined in the [SampledSignals](https://github.com/JuliaAudio/SampledSignals.jl) package.

src/LibSndFile.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,4 @@ include("sourcesink.jl")
1818
include("loadsave.jl")
1919
include("readwrite.jl")
2020

21-
function __init__()
22-
# ogg currently not in the registry
23-
add_format(format"OGG", "OggS", [".ogg", ".oga"], [:LibSndFile])
24-
for fmt in supported_formats
25-
add_loader(fmt, :LibSndFile)
26-
add_saver(fmt, :LibSndFile)
27-
end
28-
end
29-
3021
end # module LibSndFile

0 commit comments

Comments
 (0)