Laurent Pelecq
4528d9c407
Fix response type and remove errors that can be mapped to io::Error.
2 years ago
Laurent Pelecq
9e4b09d96d
Implement history get client list.
2 years ago
Laurent Pelecq
1a2e7fc145
Change MessageId to u32 instead of String.
2 years ago
Laurent Pelecq
c67a79f3f5
Add history commands and fix types.
...
* Add history commands, not implemented.
* Add types for history commands.
* Fix i8 instead of u8 for rate, pitch and volume.
* Use u16 for length in commands.
2 years ago
Laurent Pelecq
f662405997
Move generic methods send and receive from AsyncClient to Client.
...
* Generic methods can be used in the synchronous API. It gives the choice to use
either specific calls or the generic ones.
* AsyncClient consists in a simple queue of requests.
* Getters only return the generic Response::Get. Callers must convert if it's an
integer.
2 years ago
Laurent Pelecq
883e491a7f
Add all requests in AsyncClient.
...
* Simplify fifo tests with tempfile.
* Test getter in async fifo tests.
2 years ago
Laurent Pelecq
c0f0b69dd8
Don't reexport Source
2 years ago
Laurent Pelecq
7c8874237d
Add AsyncClient in documentation
2 years ago
Laurent Pelecq
ec1b1aca51
New AsyncClient class.
...
* Only few commands are implemented.
* Example async_mio_loop added.
2 years ago
Laurent Pelecq
a186c456db
Dual synchronous and asynchronous API.
...
* Calls have been separate in a "send" and a "receive" to have the same methods in both modes.
* Asynchrone API is enabled with feature "async-mio".
2 years ago
Laurent Pelecq
73b2531c4f
Dual synchronous and asynchronous API
...
Tests don't work in async mode
2 years ago
Laurent Pelecq
855b0c5af0
add notifications
2 years ago
Laurent Pelecq
dcd38f2b9e
Test for synthesis voices. Few other tests.
3 years ago
Laurent Pelecq
837a84950c
More tests get/set language, rate, ...
3 years ago
Laurent Pelecq
da3f295f96
Fix type ClientTarget. Move basic types in types.rs.
3 years ago