Andreas Linz
1f9cf21037
Add rustdoc
5 years ago
Andreas Linz
6fa12fb0b0
Change `probe_error` type to `SioError`
5 years ago
Andreas Linz
915428270d
Derive `Debug` and `PartialEq` for `SioBackend`
5 years ago
Andreas Linz
fa0a442ff7
Let `set_app_name` return a `Result`
5 years ago
Andreas Linz
d0a8bb77d6
Add `default_{in,out}put_device` methods
5 years ago
Andreas Linz
18d0d54b6a
Add `set_app_name` method
This method allows to change the application name that is
shown in the system mixer.
5 years ago
Andreas Linz
9e021297eb
Add documentation to ffi module
5 years ago
Andreas Linz
6be36a0a80
Remove unimplemented `ring_buffer`
5 years ago
Andreas Linz
fef1225f99
Update configuration
5 years ago
Andreas Linz
9e97a269a7
License under GPLv3
5 years ago
Andreas Linz
0af2045e48
Unref device (not really needed)
5 years ago
Andreas Linz
a0e7d65bf8
Pause and unpause playback in test run
5 years ago
Andreas Linz
85c0fb5612
Check number of frames written and assert that latency is > 0
5 years ago
Andreas Linz
b9335865b1
Use buffer with a power of two size
5 years ago
Andreas Linz
0b6f02dc9a
Increase frequency
5 years ago
Andreas Linz
cc764291c4
Use `Dummy` backend
5 years ago
Andreas Linz
1835996d5a
Add `SioResult` for convenience
5 years ago
Andreas Linz
a0f708b173
Update TODOs
5 years ago
Andreas Linz
97377c3471
Add TODOs
5 years ago
Andreas Linz
b7294970c7
s/.bk/.rs.bk/gc
5 years ago
Andreas Linz
72771cdbf9
Ignore `.rs.swo` files
5 years ago
Andreas Linz
9bfed0e80f
rustfmt
5 years ago
Andreas Linz
785dd4a259
Fix test
5 years ago
Andreas Linz
2508f7f5d7
Add macro to implement `write_stream` for different types
5 years ago
Andreas Linz
86b255d031
Use callbacks in stream test
5 years ago
Andreas Linz
637d66c1b8
Make `{begin,end}_write` private
5 years ago
Andreas Linz
8c7cb076c0
Let `begin_write` return a Result
The `Result` contains either the actual number of frames written
to the output stream or an error.
5 years ago
Andreas Linz
bb97aea2a4
Implement `write_stream`
This function should be called from the write callback and
writes the buffer contents to the output stream.
TODO: Implement a macro to generate this method for all supported
formats.
5 years ago
Andreas Linz
daf88cd3ab
Remove unnecessary `unsafe`
5 years ago
Andreas Linz
44254fd8fd
Remove unnecessary `mut`
5 years ago
Andreas Linz
63cd58ecf4
Shorten callback wrapper names
5 years ago
Andreas Linz
79419eac57
Replace match cases with `map` because `None` case doesn't need special treatment
5 years ago
Andreas Linz
c44ff1521d
Make raw stream private
5 years ago
Andreas Linz
4eb8fe4165
Merge branch 'feat/closure-callback'
5 years ago
Andreas Linz
af636004d0
Directly create boxed callback
5 years ago
Andreas Linz
e6cfed08db
Print format in callback
5 years ago
Andreas Linz
d55ada9c35
rustfmt
5 years ago
Andreas Linz
8392da6947
Test new callback registrations
5 years ago
Andreas Linz
8cdde22248
Implement register_{underflow,error}_callback()
5 years ago
Andreas Linz
3646235e0e
Implement error and underflow callback wrapper
5 years ago
Andreas Linz
4d54bf2cdb
Remove commented out code
5 years ago
Andreas Linz
e132fcb3c8
Remove `unsafe` from callback function declaration
5 years ago
Andreas Linz
ee13ebd8db
Implement callback struct
5 years ago
Andreas Linz
8df0199e13
Get rid of the type parameter hell 😅
5 years ago
Andreas Linz
86f2061124
Implement callback struct and add type parameters
5 years ago
Andreas Linz
97ba5e71d5
Fix callback closure by removing unnecessary casts
The second `*const` has dropped the environment and a left over
an ordinary function pointer.
5 years ago
Andreas Linz
53ef65c1b5
Update TODO
5 years ago
Andreas Linz
bd7cee1545
Implement callback wrapper (can't access its environment atm)
5 years ago
Andreas Linz
7e8175774e
Remove `unsafe` from function declaration
5 years ago
Andreas Linz
2bda5decf0
rustfmt
5 years ago