ffi-sndfile 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/sndfile.rb ADDED
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ffi"
4
+ require "sndfile/version"
5
+ require "sndfile/constants"
6
+ require "sndfile/error"
7
+ require "sndfile/native"
8
+ require "sndfile/format"
9
+ require "sndfile/info"
10
+ require "sndfile/formats"
11
+ require "sndfile/strings"
12
+ require "sndfile/virtual_io"
13
+ require "sndfile/commands"
14
+ require "sndfile/sound_file"
15
+
16
+ # Ruby bindings for libsndfile, the library for reading and writing sound
17
+ # files. Start with SndFile::SoundFile (or SndFile.open); the raw libsndfile
18
+ # functions live in SndFile::Native.
19
+ module SndFile
20
+ # The version of the loaded libsndfile library.
21
+ def self.version
22
+ LibraryVersion.new
23
+ end
24
+
25
+ # Same as SoundFile.open.
26
+ def self.open(target, mode = :read, **, &)
27
+ SoundFile.open(target, mode, **, &)
28
+ end
29
+
30
+ # The major formats (containers) libsndfile supports; see Formats.
31
+ def self.major_formats
32
+ Formats.major_formats
33
+ end
34
+
35
+ # The subtypes (encodings) libsndfile supports; see Formats.
36
+ def self.subtypes
37
+ Formats.subtypes
38
+ end
39
+
40
+ # Common combinations of major format and subtype; see Formats.
41
+ def self.simple_formats
42
+ Formats.simple_formats
43
+ end
44
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ffi-sndfile
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Roel van Dijk
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: ffi
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '1.15'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '1.15'
26
+ description: Ruby FFI wrapper around libsndfile for reading and writing sound files.
27
+ email:
28
+ - roel@rustradio.org
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - CHANGELOG.md
34
+ - LICENSE.txt
35
+ - README.md
36
+ - lib/ffi-sndfile.rb
37
+ - lib/sndfile.rb
38
+ - lib/sndfile/commands.rb
39
+ - lib/sndfile/constants.rb
40
+ - lib/sndfile/error.rb
41
+ - lib/sndfile/format.rb
42
+ - lib/sndfile/formats.rb
43
+ - lib/sndfile/info.rb
44
+ - lib/sndfile/library_version.rb
45
+ - lib/sndfile/native.rb
46
+ - lib/sndfile/native/enums.rb
47
+ - lib/sndfile/native/functions.rb
48
+ - lib/sndfile/native/handle.rb
49
+ - lib/sndfile/native/structs.rb
50
+ - lib/sndfile/sound_file.rb
51
+ - lib/sndfile/strings.rb
52
+ - lib/sndfile/version.rb
53
+ - lib/sndfile/virtual_io.rb
54
+ homepage: https://github.com/rdvdijk/ffi-sndfile
55
+ licenses:
56
+ - MIT
57
+ metadata:
58
+ source_code_uri: https://github.com/rdvdijk/ffi-sndfile
59
+ bug_tracker_uri: https://github.com/rdvdijk/ffi-sndfile/issues
60
+ changelog_uri: https://github.com/rdvdijk/ffi-sndfile/blob/main/CHANGELOG.md
61
+ rubygems_mfa_required: 'true'
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '3.2'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubygems_version: 4.0.23
77
+ specification_version: 4
78
+ summary: Read and write WAV, FLAC, Ogg/Vorbis, Opus, MP3 and other audio files using
79
+ libsndfile.
80
+ test_files: []