We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8464069 commit 6714caaCopy full SHA for 6714caa
src/audio.cr
@@ -36,7 +36,7 @@ module SF
36
end
37
38
39
- class SoundRecorder
+ abstract class SoundRecorder
40
def self.available_devices
41
ptr = CSFML.sound_recorder_get_available_devices(out count)
42
ptr.to_slice(count.to_i).map { |p| p ? String.new(p) : "" }
@@ -63,7 +63,7 @@ module SF
63
64
65
66
- class SoundStream
+ abstract class SoundStream
67
abstract def on_get_data(): Slice(Int16)
68
abstract def on_seek(position : Time): Void
69
@@ -90,7 +90,7 @@ module SF
90
91
92
93
94
abstract def on_start(): Bool
95
abstract def on_process_samples(samples : Slice(Int16)): Bool
96
abstract def on_stop(): Void
0 commit comments