beeps 0.3.16 → 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 +4 -4
- 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 +2 -2
- data/.doc/ext/beeps/oscillator.cpp +3 -3
- 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 +2 -2
- data/.doc/ext/beeps/signals.cpp +3 -3
- data/.doc/ext/beeps/sound.cpp +16 -8
- data/.doc/ext/beeps/sound_player.cpp +13 -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 +2 -2
- data/.github/workflows/release-gem.yml +2 -40
- data/.github/workflows/tag.yml +5 -28
- data/.github/workflows/test.yml +1 -28
- data/ChangeLog.md +28 -0
- data/Gemfile.lock +13 -8
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/beeps.gemspec +3 -3
- data/ext/beeps/analyser.cpp +4 -4
- 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 +2 -2
- data/ext/beeps/oscillator.cpp +3 -3
- 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 +2 -2
- data/ext/beeps/signals.cpp +3 -3
- data/ext/beeps/sound.cpp +17 -8
- data/ext/beeps/sound_player.cpp +14 -5
- data/ext/beeps/text_in.cpp +1 -1
- data/ext/beeps/time_stretch.cpp +1 -1
- data/ext/beeps/value.cpp +2 -2
- data/include/beeps/defs.h +14 -4
- data/include/beeps/signals.h +2 -2
- data/include/beeps/sound.h +9 -3
- data/lib/beeps/beeps.rb +4 -4
- data/lib/beeps/extension.rb +1 -1
- data/lib/beeps/sound.rb +2 -2
- data/src/file_in.cpp +2 -0
- 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 +382 -160
- data/src/win32/beeps.cpp +25 -2
- data/src/win32/signals.cpp +103 -29
- 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
data/src/signals.cpp
CHANGED
|
@@ -623,18 +623,18 @@ namespace Beeps
|
|
|
623
623
|
return t;
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
-
double
|
|
627
|
-
Signals::sample_rate () const
|
|
628
|
-
{
|
|
629
|
-
return self->frames ? self->frames->dataRate() : Beeps::sample_rate();
|
|
630
|
-
}
|
|
631
|
-
|
|
632
626
|
uint
|
|
633
627
|
Signals::nchannels () const
|
|
634
628
|
{
|
|
635
629
|
return self->frames ? self->frames->channels() : 0;
|
|
636
630
|
}
|
|
637
631
|
|
|
632
|
+
double
|
|
633
|
+
Signals::sample_rate () const
|
|
634
|
+
{
|
|
635
|
+
return self->frames ? self->frames->dataRate() : Beeps::sample_rate();
|
|
636
|
+
}
|
|
637
|
+
|
|
638
638
|
uint
|
|
639
639
|
Signals::nsamples () const
|
|
640
640
|
{
|