sound 0.0.5 → 0.0.6
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 +8 -8
- data/lib/sound/device.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MmUyZGIzMWJmMGRmZTA5MmVlMjAwNWEyOTc3M2I4NmVkZGRkOTBkOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NWU1Zjk0Yjk4ZGQ1OTdiOTRkY2MyZTY2NmQ3NmY0YzUyOTBmOTFhMA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZDdkNjVjZmVhOTFiZWE3ZWRiMDIyMDljMGU5ZTFkZmJlMzYzOTcxYjVmYTRh
|
|
10
|
+
OGE0ZTcyNGNlODM5NmFiYjNkZWY5NjM5NjBkNDE4NzgyY2RlM2YyMTA5ODA0
|
|
11
|
+
NDI4YjFjNGI5YmU5MGJkNDg5Mjc4OTE0YTA3MDRmNDdjNmEyNmQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
N2UxOWQxZjRlMTEwYTJlNDZhNjgwZTNlNzNlMDY1YTc4YjFmNWRhODE3NDRl
|
|
14
|
+
MDlhMTM5NjUwYzJlOWFhNzI1NjQ0YjdkZTM1NzBhY2U0OGQxNjg3OGM3MWNk
|
|
15
|
+
NzU4YzYwY2MxODBlY2E3NDY3MmIyYWJmMjIzOTBlMTZiNTdkMzA=
|
data/lib/sound/device.rb
CHANGED
|
@@ -129,7 +129,6 @@ module Sound
|
|
|
129
129
|
data_buffer = FFI::MemoryPointer.new(:int, data.data.size)
|
|
130
130
|
data_buffer.write_array_of_int data.data
|
|
131
131
|
buffer_length = format.avg_bps*data.duration/1000
|
|
132
|
-
puts buffer_length
|
|
133
132
|
header = Win32::WAVEHDR.new(data_buffer, buffer_length)
|
|
134
133
|
Win32::Sound.waveOutPrepareHeader(handle.id, header.pointer, header.size)
|
|
135
134
|
Thread.stop if Thread.current[:stop]
|