Skip to content

Commit 6714caa

Browse files
committed
Fix abstract classes
1 parent 8464069 commit 6714caa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/audio.cr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module SF
3636
end
3737
end
3838

39-
class SoundRecorder
39+
abstract class SoundRecorder
4040
def self.available_devices
4141
ptr = CSFML.sound_recorder_get_available_devices(out count)
4242
ptr.to_slice(count.to_i).map { |p| p ? String.new(p) : "" }
@@ -63,7 +63,7 @@ module SF
6363
end
6464
end
6565

66-
class SoundStream
66+
abstract class SoundStream
6767
abstract def on_get_data(): Slice(Int16)
6868
abstract def on_seek(position : Time): Void
6969

@@ -90,7 +90,7 @@ module SF
9090
end
9191
end
9292

93-
class SoundRecorder
93+
abstract class SoundRecorder
9494
abstract def on_start(): Bool
9595
abstract def on_process_samples(samples : Slice(Int16)): Bool
9696
abstract def on_stop(): Void

0 commit comments

Comments
 (0)