beeps 0.4.0 → 0.5.1
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.
- checksums.yaml +4 -4
- data/.doc/ext/beeps/analyser.cpp +1 -1
- data/.doc/ext/beeps/envelope.cpp +1 -1
- data/.doc/ext/beeps/file_in.cpp +1 -1
- data/.doc/ext/beeps/gain.cpp +1 -1
- data/.doc/ext/beeps/high_pass.cpp +1 -1
- data/.doc/ext/beeps/low_pass.cpp +1 -1
- data/.doc/ext/beeps/mic_in.cpp +1 -1
- data/.doc/ext/beeps/mixer.cpp +1 -1
- data/.doc/ext/beeps/oscillator.cpp +2 -2
- data/.doc/ext/beeps/pitch_shift.cpp +1 -1
- data/.doc/ext/beeps/processor.cpp +1 -1
- data/.doc/ext/beeps/reverb.cpp +1 -1
- data/.doc/ext/beeps/sequencer.cpp +1 -1
- data/.doc/ext/beeps/signals.cpp +1 -1
- data/.doc/ext/beeps/sound.cpp +6 -6
- data/.doc/ext/beeps/sound_player.cpp +5 -5
- data/.doc/ext/beeps/text_in.cpp +1 -1
- data/.doc/ext/beeps/time_stretch.cpp +1 -1
- data/.doc/ext/beeps/value.cpp +1 -1
- data/.github/workflows/release-gem.yml +2 -49
- data/.github/workflows/tag.yml +5 -28
- data/.github/workflows/test.yml +1 -37
- data/ChangeLog.md +21 -0
- data/Gemfile.lock +13 -8
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/beeps.gemspec +3 -3
- data/ext/beeps/analyser.cpp +1 -1
- data/ext/beeps/envelope.cpp +1 -1
- data/ext/beeps/file_in.cpp +1 -1
- data/ext/beeps/gain.cpp +1 -1
- data/ext/beeps/high_pass.cpp +1 -1
- data/ext/beeps/low_pass.cpp +1 -1
- data/ext/beeps/mic_in.cpp +1 -1
- data/ext/beeps/mixer.cpp +1 -1
- data/ext/beeps/oscillator.cpp +2 -2
- data/ext/beeps/pitch_shift.cpp +1 -1
- data/ext/beeps/processor.cpp +1 -1
- data/ext/beeps/reverb.cpp +1 -1
- data/ext/beeps/sequencer.cpp +1 -1
- data/ext/beeps/signals.cpp +1 -1
- data/ext/beeps/sound.cpp +6 -6
- data/ext/beeps/sound_player.cpp +5 -5
- data/ext/beeps/text_in.cpp +1 -1
- data/ext/beeps/time_stretch.cpp +1 -1
- data/ext/beeps/value.cpp +1 -1
- data/include/beeps/signals.h +2 -2
- data/include/beeps/sound.h +3 -3
- data/lib/beeps/beeps.rb +4 -4
- data/lib/beeps/sound.rb +1 -1
- data/src/mic_in.cpp +10 -9
- data/src/openal.cpp +66 -8
- data/src/openal.h +5 -1
- data/src/oscillator.cpp +1 -1
- data/src/signals.cpp +6 -6
- data/src/sound.cpp +347 -152
- data/src/win32/beeps.cpp +25 -2
- data/src/win32/signals.cpp +102 -21
- data/test/test_file_in.rb +38 -0
- data/test/test_sound.rb +6 -6
- data/test/test_sound_player.rb +86 -20
- metadata +7 -8
- data/.github/workflows/utils.rb +0 -127
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 537a0ed28852c50225e938ef9ce8213ea6ea409f428c20cece5bef23d804dd8e
|
|
4
|
+
data.tar.gz: 3a827e233a43a4493790ee4eeef1c6c3a05a57b2e1d31d885ae22502999cb16d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32ce8ead10aaade2786de1b1befc179bfb65654d5caaf9aa269310358fb5de97fcbd4efe1f74ecd08941186fccfbb719d0b948e01ceb9e19ee02725351a4ff87
|
|
7
|
+
data.tar.gz: 20167f9e7269b2c9818beb7026d79364dfb063554b9f16f54d900670e83bfabd03837dfd5829e12acf38e802eb891a3f8dee31243afc9bc04773ad529a5b916e
|
data/.doc/ext/beeps/analyser.cpp
CHANGED
data/.doc/ext/beeps/envelope.cpp
CHANGED
data/.doc/ext/beeps/file_in.cpp
CHANGED
data/.doc/ext/beeps/gain.cpp
CHANGED
data/.doc/ext/beeps/low_pass.cpp
CHANGED
data/.doc/ext/beeps/mic_in.cpp
CHANGED
data/.doc/ext/beeps/mixer.cpp
CHANGED
|
@@ -9,7 +9,7 @@ RUCY_DEFINE_WRAPPER_VALUE_FROM_TO(BEEPS_EXPORT, Beeps::Oscillator)
|
|
|
9
9
|
|
|
10
10
|
#define THIS to<Beeps::Oscillator*>(self)
|
|
11
11
|
|
|
12
|
-
#define CHECK
|
|
12
|
+
#define CHECK RUCY_CHECK_PTR(Beeps::Oscillator, self)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
static
|
|
@@ -48,7 +48,7 @@ VALUE set_samples(VALUE self, VALUE samples)
|
|
|
48
48
|
for (size_t i = 0; i < size; ++i)
|
|
49
49
|
data.push_back(to<Beeps::Sample>(array[i]));
|
|
50
50
|
|
|
51
|
-
THIS->set_samples(
|
|
51
|
+
THIS->set_samples(data.data(), data.size());
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
static
|
|
@@ -10,7 +10,7 @@ RUCY_DEFINE_WRAPPER_VALUE_FROM_TO(BEEPS_EXPORT, Beeps::Processor)
|
|
|
10
10
|
|
|
11
11
|
#define THIS to<Beeps::Processor*>(self)
|
|
12
12
|
|
|
13
|
-
#define CHECK
|
|
13
|
+
#define CHECK RUCY_CHECK_PTR(Beeps::Processor, self)
|
|
14
14
|
|
|
15
15
|
#define CALL(fun) RUCY_CALL_SUPER(THIS, fun)
|
|
16
16
|
|
data/.doc/ext/beeps/reverb.cpp
CHANGED
data/.doc/ext/beeps/signals.cpp
CHANGED
data/.doc/ext/beeps/sound.cpp
CHANGED
|
@@ -8,7 +8,7 @@ RUCY_DEFINE_VALUE_FROM_TO(BEEPS_EXPORT, Beeps::Sound)
|
|
|
8
8
|
|
|
9
9
|
#define THIS to<Beeps::Sound*>(self)
|
|
10
10
|
|
|
11
|
-
#define CHECK
|
|
11
|
+
#define CHECK RUCY_CHECK_PTR(Beeps::Sound, self)
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
static
|
|
@@ -44,19 +44,19 @@ VALUE play(VALUE self)
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
static
|
|
47
|
-
VALUE
|
|
47
|
+
VALUE get_nchannels(VALUE self)
|
|
48
48
|
{
|
|
49
49
|
CHECK;
|
|
50
50
|
|
|
51
|
-
return value(THIS->
|
|
51
|
+
return value(THIS->nchannels());
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
static
|
|
55
|
-
VALUE
|
|
55
|
+
VALUE get_sample_rate(VALUE self)
|
|
56
56
|
{
|
|
57
57
|
CHECK;
|
|
58
58
|
|
|
59
|
-
return value(THIS->
|
|
59
|
+
return value(THIS->sample_rate());
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
static
|
|
@@ -129,8 +129,8 @@ Init_beeps_sound ()
|
|
|
129
129
|
cSound.define_private_method("initialize!", initialize);
|
|
130
130
|
rb_define_private_method(cSound, "initialize_copy", RUBY_METHOD_FUNC(initialize_copy), 1);
|
|
131
131
|
cSound.define_private_method("play!", play);
|
|
132
|
-
rb_define_method(cSound, "sample_rate", RUBY_METHOD_FUNC(get_sample_rate), 0);
|
|
133
132
|
rb_define_method(cSound, "nchannels", RUBY_METHOD_FUNC(get_nchannels), 0);
|
|
133
|
+
rb_define_method(cSound, "sample_rate", RUBY_METHOD_FUNC(get_sample_rate), 0);
|
|
134
134
|
rb_define_method(cSound, "seconds", RUBY_METHOD_FUNC(get_seconds), 0);
|
|
135
135
|
rb_define_method(cSound, "gain=", RUBY_METHOD_FUNC(set_gain), 1);
|
|
136
136
|
rb_define_method(cSound, "gain", RUBY_METHOD_FUNC(get_gain), 0);
|
|
@@ -9,7 +9,7 @@ RUCY_DEFINE_VALUE_FROM_TO(BEEPS_EXPORT, Beeps::SoundPlayer)
|
|
|
9
9
|
|
|
10
10
|
#define THIS to<Beeps::SoundPlayer*>(self)
|
|
11
11
|
|
|
12
|
-
#define CHECK
|
|
12
|
+
#define CHECK RUCY_CHECK_PTR(Beeps::SoundPlayer, self)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
static
|
|
@@ -187,10 +187,10 @@ Init_beeps_sound_player ()
|
|
|
187
187
|
rb_define_method(cSoundPlayer, "loop", RUBY_METHOD_FUNC(get_loop), 0);
|
|
188
188
|
rb_define_singleton_method(cSoundPlayer, "stop_all", RUBY_METHOD_FUNC(stop_all), 0);
|
|
189
189
|
|
|
190
|
-
cSoundPlayer.define_const("
|
|
191
|
-
cSoundPlayer.define_const("PLAYING",
|
|
192
|
-
cSoundPlayer.define_const("PAUSED",
|
|
193
|
-
cSoundPlayer.define_const("STOPPED",
|
|
190
|
+
cSoundPlayer.define_const("STATE_NONE", Beeps::SoundPlayer::STATE_NONE);
|
|
191
|
+
cSoundPlayer.define_const("PLAYING", Beeps::SoundPlayer::PLAYING);
|
|
192
|
+
cSoundPlayer.define_const("PAUSED", Beeps::SoundPlayer::PAUSED);
|
|
193
|
+
cSoundPlayer.define_const("STOPPED", Beeps::SoundPlayer::STOPPED);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
|
data/.doc/ext/beeps/text_in.cpp
CHANGED
data/.doc/ext/beeps/value.cpp
CHANGED
|
@@ -9,52 +9,5 @@ permissions:
|
|
|
9
9
|
|
|
10
10
|
jobs:
|
|
11
11
|
release:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- name: ruby 3.2
|
|
16
|
-
uses: ruby/setup-ruby@v1
|
|
17
|
-
with:
|
|
18
|
-
ruby-version: 3.2
|
|
19
|
-
|
|
20
|
-
- name: checkout
|
|
21
|
-
uses: actions/checkout@v4
|
|
22
|
-
|
|
23
|
-
- name: setup gems
|
|
24
|
-
run: bundle install
|
|
25
|
-
|
|
26
|
-
- name: setup dependencies
|
|
27
|
-
run: "ruby -I.github/workflows -rutils -e 'setup_dependencies'"
|
|
28
|
-
|
|
29
|
-
- name: packages
|
|
30
|
-
run: bundle exec rake packages
|
|
31
|
-
|
|
32
|
-
- name: setup zig
|
|
33
|
-
if: github.event.repository.name == 'reflex-terminal'
|
|
34
|
-
uses: mlugg/setup-zig@v2
|
|
35
|
-
with:
|
|
36
|
-
version: 0.16.0
|
|
37
|
-
|
|
38
|
-
- name: test
|
|
39
|
-
run: bundle exec rake test
|
|
40
|
-
|
|
41
|
-
- name: create gem
|
|
42
|
-
id: gem
|
|
43
|
-
run: |
|
|
44
|
-
bundle exec rake gem
|
|
45
|
-
echo path=$(ruby -e 'print Dir.glob("*.gem").first') >> $GITHUB_OUTPUT
|
|
46
|
-
|
|
47
|
-
- name: create github release
|
|
48
|
-
env:
|
|
49
|
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
50
|
-
run: ruby -I.github/workflows -rutils -e 'release(*ARGV)' ./${{ steps.gem.outputs.path }}
|
|
51
|
-
|
|
52
|
-
- name: upload to rubygems
|
|
53
|
-
env:
|
|
54
|
-
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
|
55
|
-
run: |
|
|
56
|
-
mkdir -p $HOME/.gem
|
|
57
|
-
touch $HOME/.gem/credentials
|
|
58
|
-
chmod 0600 $HOME/.gem/credentials
|
|
59
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
60
|
-
bundle exec rake upload
|
|
12
|
+
uses: xord/xot/.github/workflows/release-gem.yml@master
|
|
13
|
+
secrets: inherit
|
data/.github/workflows/tag.yml
CHANGED
|
@@ -1,35 +1,12 @@
|
|
|
1
1
|
name: Tag
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
4
|
+
workflow_run:
|
|
5
|
+
workflows: [Test]
|
|
6
|
+
types: [completed]
|
|
5
7
|
branches: [master]
|
|
6
8
|
|
|
7
9
|
jobs:
|
|
8
10
|
tag:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: ruby 3.2
|
|
13
|
-
uses: ruby/setup-ruby@v1
|
|
14
|
-
with:
|
|
15
|
-
ruby-version: 3.2
|
|
16
|
-
|
|
17
|
-
- name: checkout
|
|
18
|
-
uses: actions/checkout@v4
|
|
19
|
-
with:
|
|
20
|
-
fetch-depth: 0
|
|
21
|
-
token: ${{ secrets.PAT }}
|
|
22
|
-
|
|
23
|
-
- name: setup dependencies
|
|
24
|
-
run: "ruby -I.github/workflows -rutils -e 'setup_dependencies only: :xot'"
|
|
25
|
-
|
|
26
|
-
- name: setup user name and email
|
|
27
|
-
run: |
|
|
28
|
-
git config --global user.email "xordog@gmail.com"
|
|
29
|
-
git config --global user.name "xord"
|
|
30
|
-
|
|
31
|
-
- name: tag versions
|
|
32
|
-
run: "ruby -I.github/workflows -rutils -e 'tag_versions'"
|
|
33
|
-
|
|
34
|
-
- name: push tags
|
|
35
|
-
run: git push origin --tags
|
|
11
|
+
uses: xord/xot/.github/workflows/tag.yml@master
|
|
12
|
+
secrets: inherit
|
data/.github/workflows/test.yml
CHANGED
|
@@ -7,40 +7,4 @@ on:
|
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
9
|
test:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
steps:
|
|
13
|
-
- name: ruby 3.2
|
|
14
|
-
uses: ruby/setup-ruby@v1
|
|
15
|
-
with:
|
|
16
|
-
ruby-version: 3.2
|
|
17
|
-
|
|
18
|
-
- name: checkout
|
|
19
|
-
uses: actions/checkout@v4
|
|
20
|
-
|
|
21
|
-
- name: setup gems
|
|
22
|
-
run: bundle install
|
|
23
|
-
|
|
24
|
-
- name: setup dependencies
|
|
25
|
-
run: "ruby -I.github/workflows -rutils -e 'setup_dependencies'"
|
|
26
|
-
|
|
27
|
-
- name: packages
|
|
28
|
-
run: bundle exec rake verbose packages
|
|
29
|
-
|
|
30
|
-
- name: setup zig
|
|
31
|
-
if: github.event.repository.name == 'reflex-terminal'
|
|
32
|
-
uses: mlugg/setup-zig@v2
|
|
33
|
-
with:
|
|
34
|
-
version: 0.16.0
|
|
35
|
-
|
|
36
|
-
- name: vendor
|
|
37
|
-
run: bundle exec rake vendor
|
|
38
|
-
|
|
39
|
-
- name: lib
|
|
40
|
-
run: bundle exec rake verbose lib
|
|
41
|
-
|
|
42
|
-
- name: ext
|
|
43
|
-
run: bundle exec rake verbose ext
|
|
44
|
-
|
|
45
|
-
- name: test
|
|
46
|
-
run: bundle exec rake verbose test
|
|
10
|
+
uses: xord/xot/.github/workflows/test.yml@master
|
data/ChangeLog.md
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
# beeps ChangeLog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## [v0.5.1] - 2026-11-04
|
|
5
|
+
|
|
6
|
+
- Release the changes of v0.5.0, whose gem was not released
|
|
7
|
+
|
|
8
|
+
- Fix a test of SoundPlayer failing on a slow machine
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## [v0.5.0] - 2026-11-04
|
|
12
|
+
|
|
13
|
+
- [BREAKING] SoundPlayer#state returns :none instead of :unknown for a player with nothing to play
|
|
14
|
+
- Let a stopped sound player play again, also from a position set while it is stopped
|
|
15
|
+
- Stop the oldest sound when too many sounds play at once
|
|
16
|
+
- Write a log instead of raising when no sound can stop to make room for a new one
|
|
17
|
+
- Raise ArgumentError for a position over the length of a sound
|
|
18
|
+
- Read files of 24 and 32 bits, and of floats, on Windows
|
|
19
|
+
|
|
20
|
+
- Fix FileIn on Windows reading 16-bit samples as unsigned
|
|
21
|
+
- Fix a leak of the buffers of finished sound players, which stopped every sound after 1024 of them on macOS
|
|
22
|
+
- Fix the errors of OpenAL never being caught
|
|
23
|
+
|
|
24
|
+
|
|
4
25
|
## [v0.4.0] - 2026-08-04
|
|
5
26
|
|
|
6
27
|
- Support dup on value classes, reject it on stateful ones
|
data/Gemfile.lock
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
power_assert (3.0
|
|
5
|
-
rake (13.
|
|
6
|
-
test-unit (3.7.
|
|
4
|
+
power_assert (3.1.0)
|
|
5
|
+
rake (13.4.2)
|
|
6
|
+
test-unit (3.7.8)
|
|
7
7
|
power_assert
|
|
8
|
-
yard (0.9.
|
|
8
|
+
yard (0.9.45)
|
|
9
9
|
|
|
10
10
|
PLATFORMS
|
|
11
|
-
|
|
12
|
-
arm64-darwin-23
|
|
13
|
-
arm64-darwin-24
|
|
11
|
+
ruby
|
|
14
12
|
|
|
15
13
|
DEPENDENCIES
|
|
16
14
|
rake
|
|
17
15
|
test-unit
|
|
18
16
|
yard
|
|
19
17
|
|
|
18
|
+
CHECKSUMS
|
|
19
|
+
bundler (4.0.20) sha256=7978a8ac648767f5e635bc522445b79e80a52b907a39a36c2d8085ed6bc762ae
|
|
20
|
+
power_assert (3.1.0) sha256=fefe98ed5d3140628138f3f9f9194d6ece01f1320e69700d3c928adca7518251
|
|
21
|
+
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
|
|
22
|
+
test-unit (3.7.8) sha256=689d1ca53f4d46f678b4e5d68d8e4294f87fc5e8b9238cc4de7c5727e8d65943
|
|
23
|
+
yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51
|
|
24
|
+
|
|
20
25
|
BUNDLED WITH
|
|
21
|
-
|
|
26
|
+
4.0.20
|
data/Rakefile
CHANGED
|
@@ -33,7 +33,7 @@ use_external_library 'https://github.com/avaneev/r8brain-free-src',
|
|
|
33
33
|
tag: 'version-6.2',
|
|
34
34
|
excludes: %w[DLL/ bench/ other/ pffft_double example.cpp],
|
|
35
35
|
&proc {
|
|
36
|
-
filter_file
|
|
36
|
+
filter_file 'r8bconf.h' do |conf|
|
|
37
37
|
<<~EOS + conf
|
|
38
38
|
#ifndef R8B_PFFFT
|
|
39
39
|
#define R8B_PFFFT 1
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.5.1
|
data/beeps.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
|
11
11
|
|
|
12
12
|
ext = Beeps::Extension
|
|
13
13
|
name = ext.name true
|
|
14
|
-
rdocs = glob.call
|
|
14
|
+
rdocs = glob.call(*%w[README .doc/ext/**/*.cpp])
|
|
15
15
|
|
|
16
16
|
s.name = name
|
|
17
17
|
s.version = ext.version
|
|
@@ -25,8 +25,8 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
s.platform = Gem::Platform::RUBY
|
|
26
26
|
s.required_ruby_version = '>= 3.0.0'
|
|
27
27
|
|
|
28
|
-
s.add_dependency 'xot', '~> 0.
|
|
29
|
-
s.add_dependency 'rucy', '~> 0.
|
|
28
|
+
s.add_dependency 'xot', '~> 0.5.0'
|
|
29
|
+
s.add_dependency 'rucy', '~> 0.5.0'
|
|
30
30
|
|
|
31
31
|
s.files = `git ls-files`.split $/
|
|
32
32
|
s.executables = s.files.grep(%r{^bin/}) {|f| File.basename f}
|
data/ext/beeps/analyser.cpp
CHANGED
data/ext/beeps/envelope.cpp
CHANGED
data/ext/beeps/file_in.cpp
CHANGED
data/ext/beeps/gain.cpp
CHANGED
data/ext/beeps/high_pass.cpp
CHANGED
data/ext/beeps/low_pass.cpp
CHANGED
data/ext/beeps/mic_in.cpp
CHANGED
data/ext/beeps/mixer.cpp
CHANGED
data/ext/beeps/oscillator.cpp
CHANGED
|
@@ -9,7 +9,7 @@ RUCY_DEFINE_WRAPPER_VALUE_FROM_TO(BEEPS_EXPORT, Beeps::Oscillator)
|
|
|
9
9
|
|
|
10
10
|
#define THIS to<Beeps::Oscillator*>(self)
|
|
11
11
|
|
|
12
|
-
#define CHECK
|
|
12
|
+
#define CHECK RUCY_CHECK_PTR(Beeps::Oscillator, self)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
static
|
|
@@ -51,7 +51,7 @@ RUCY_DEF1(set_samples, samples)
|
|
|
51
51
|
for (size_t i = 0; i < size; ++i)
|
|
52
52
|
data.push_back(to<Beeps::Sample>(array[i]));
|
|
53
53
|
|
|
54
|
-
THIS->set_samples(
|
|
54
|
+
THIS->set_samples(data.data(), data.size());
|
|
55
55
|
}
|
|
56
56
|
RUCY_END
|
|
57
57
|
|
data/ext/beeps/pitch_shift.cpp
CHANGED
data/ext/beeps/processor.cpp
CHANGED
|
@@ -10,7 +10,7 @@ RUCY_DEFINE_WRAPPER_VALUE_FROM_TO(BEEPS_EXPORT, Beeps::Processor)
|
|
|
10
10
|
|
|
11
11
|
#define THIS to<Beeps::Processor*>(self)
|
|
12
12
|
|
|
13
|
-
#define CHECK
|
|
13
|
+
#define CHECK RUCY_CHECK_PTR(Beeps::Processor, self)
|
|
14
14
|
|
|
15
15
|
#define CALL(fun) RUCY_CALL_SUPER(THIS, fun)
|
|
16
16
|
|
data/ext/beeps/reverb.cpp
CHANGED
data/ext/beeps/sequencer.cpp
CHANGED