Skip to content

Commit a064069

Browse files
committed
Remove trailing whitespace
1 parent fd8ea66 commit a064069

17 files changed

+5619
-5574
lines changed

src/audio.cr

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Copyright (C) 2015 Oleh Prypin <[email protected]>
2-
#
2+
#
33
# This file is part of CrSFML.
4-
#
4+
#
55
# This software is provided 'as-is', without any express or implied
66
# warranty. In no event will the authors be held liable for any damages
77
# arising from the use of this software.
8-
#
8+
#
99
# Permission is granted to anyone to use this software for any purpose,
1010
# including commercial applications, and to alter it and redistribute it
1111
# freely, subject to the following restrictions:
12-
#
12+
#
1313
# 1. The origin of this software must not be misrepresented; you must not
1414
# claim that you wrote the original software. If you use this software
1515
# in a product, an acknowledgement in the product documentation would be
@@ -22,31 +22,31 @@ require "./audio_lib"
2222

2323
module SF
2424
extend self
25-
25+
2626
class Sound
2727
def initialize(buffer: SoundBuffer)
2828
initialize()
2929
self.buffer = buffer
3030
end
3131
end
32-
32+
3333
class SoundBuffer
3434
def to_slice
3535
samples.to_slice(sample_count.to_i)
3636
end
3737
end
38-
38+
3939
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) : "" }
4343
end
44-
44+
4545
def start()
4646
start(44100)
4747
end
4848
end
49-
49+
5050
class SoundBufferRecorder
5151
def self.available?
5252
SoundRecorder.available?
@@ -57,19 +57,19 @@ module SF
5757
def self.available_devices
5858
SoundRecorder.available_devices
5959
end
60-
60+
6161
def start()
6262
start(44100)
6363
end
6464
end
65-
65+
6666
class SoundStream
6767
abstract def on_get_data(): Slice(Int16)
6868
abstract def on_seek(position: Time): Void
69-
69+
7070
# :nodoc:
7171
alias FuncBox = Box({(CSFML::SoundStreamChunk* -> CSFML::Bool), (Time -> Nil)})
72-
72+
7373
def initialize(channel_count: Int, sample_rate: Int)
7474
@owned = true
7575
@funcs = FuncBox.box({
@@ -94,10 +94,10 @@ module SF
9494
abstract def on_start(): Bool
9595
abstract def on_process_samples(samples: Slice(Int16)): Bool
9696
abstract def on_stop(): Void
97-
97+
9898
# :nodoc:
9999
alias FuncBox = Box({(-> CSFML::Bool), ((Int16*, LibC::SizeT) -> CSFML::Bool), (-> Nil)})
100-
100+
101101
def initialize()
102102
@owned = true
103103
@funcs = FuncBox.box({

0 commit comments

Comments
 (0)