Andreas Linz
3e7cef02e2
Add a note that rsoundio is abandonware
2 months ago
Andreas Linz
2725562f2c
Add copyright owner information
10 months ago
Andreas Linz
526948896c
Add deps.rs badge
3 years ago
Andreas Linz
79910efbaa
Source profile to make cargo and available
4 years ago
Andreas Linz
375245f996
s/--yes/-y
4 years ago
Andreas Linz
79fcff43c2
Disable interactive installation
4 years ago
Andreas Linz
1b7f6e8922
Use rustup
4 years ago
Andreas Linz
548052b263
Fix #8
Do not build libsoundio if it is already available on the system.
4 years ago
Andreas Linz
4d55c2af71
Ignore intellij IDEAs meta data
4 years ago
Andreas Linz
0e6f0f84e8
rustfmt
4 years ago
Andreas Linz
5779dc9492
Write `max_frame_count` in `write_callback`
This is the same as behvaiour as in the origianl `sio_sine.c` example.
The pulseaudio output is still distorted, but it does output a
continuous signal and not a single buffer like before.
4 years ago
Andreas Linz
3ba194086d
Pretty print latency
4 years ago
Andreas Linz
e687f5e817
Set latency to `sample-rate / buffer-size`
4 years ago
Andreas Linz
0726d1b992
s/sr/sample_rate/g
4 years ago
Andreas Linz
a9eddf184e
Use global `BUF_SIZE` constant
4 years ago
Andreas Linz
18f5e00ed0
Increase version number to `0.1.6`
4 years ago
Andreas Linz
dc28b0672e
Add `set_latency` to `OutStream`
4 years ago
Andreas Linz
6aae1dcdc1
cargo fmt
4 years ago
Andreas Linz
315f0200ea
Implement `default` for `SoundIo` and add `name` argument to `new`
4 years ago
Andreas Linz
3a259be4e8
Replace boolean match with a plain ol' `if-else`
4 years ago
Andreas Linz
ef948d4ae0
Remove redundant closure
4 years ago
Andreas Linz
314f7c364a
Allow to pass slices instead of forcing a vector
`&[&[T]]` was not possible without changing the API. Nonetheless, there
is possibly a more elegant way to pass an array of output frames to the
output method.
4 years ago
Andreas Linz
7748e9e4de
Remove redundant pattern
`s/@\ _\ //g`
4 years ago
Andreas Linz
59104add66
Remove redundant `Clone` implementations and derive them
4 years ago
Andreas Linz
d787c16e32
Remove redundant `let` binding
4 years ago
Andreas Linz
0adc256ee1
Update minor version to `0.1.5`
4 years ago
Andreas Linz
f6e7123460
Use `rb` 0.2.x
4 years ago
Andreas Linz
7e3e7411b7
Use uppercase identifiers for constants
4 years ago
Andreas Linz
84a4d17a13
Add sample-rate setter for `OutStream`
4 years ago
Andreas Linz
4862c672db
Move values into closure to avoid lifetime errors
4 years ago
Andreas Linz
bf951f6860
Fix license section
4 years ago
Andreas Linz
13a548ee8c
Show the SW-latency
This is zero for PulseAudio.
4 years ago
Andreas Linz
2d511956fd
Use constants and reduce signal volume
4 years ago
Andreas Linz
35fe9078e8
Read at most `max_frame_count` frames
If the backend is `PulseAudio` then the full buffer size is always used.
This is because `PulseAudio` tries to reduce the buffer size until it
reaches some lower bound. This results in sound artifacts because this
*lower bound* is so low that PulseAudio underflow (/wo getting an
underflow callback) :(
4 years ago
Andreas Linz
70591d3390
Use `read_blocking`
4 years ago
Andreas Linz
6e4725fe17
Update license shield
4 years ago
Andreas Linz
e032112b2e
Increase minor version number due to relicensing
4 years ago
Andreas Linz
2aa861d3ea
Relicense under MIT/Apache-2.0 as it is common in the Rust eco system
I license past and future contributions to this repository under the
dual MIT/Apache-2.0 license, allowing licensees to chose either at
their
option.
Closes #2
4 years ago
Andreas Linz
05b4ecc8a3
Use ring-buffer in example
5 years ago
Andreas Linz
69df53ba88
Increase version number to `0.1.3`
5 years ago
Andreas Linz
904cb7c204
Play a sine
5 years ago
Andreas Linz
148150cb88
Explicitly exit if stream test is run in a CI environment
5 years ago
Andreas Linz
e8cee9fced
Suppress error output
Maybe I should return a `SioResult` in this situation? But, if
the pointer is not null, the conversion function should only fail
if the string content is not valif UTF-8 which is almost never the case
for a name of output stream.
5 years ago
Andreas Linz
fbd8164e54
Fix some comments
5 years ago
Andreas Linz
eaf0260148
Prevent some `dead_code` warnings
- `inc_ref` is never used (but implementend)
- `InStream` has to be implemented
5 years ago
Andreas Linz
e0cae2df71
Check latency from outside the callback
5 years ago
Andreas Linz
e52f088188
Do not call `destroy` explicitly
5 years ago
Andreas Linz
1fcdde5dc4
Set usage marker to prevent `drop` of source stream on context switch
5 years ago
Andreas Linz
78850bacc5
Fix circle.yml
The name of the multirust update script has changed: `s/blastoff/quick-install/g`
5 years ago
Andreas Linz
21c35a91b5
s/backens/backends/g
5 years ago