This website works better with JavaScript.
Home
Help
Sign In
alinz
/
rsoundio
mirror of
https://github.com/klingtnet/rsoundio.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
6
Wiki
Activity
Browse Source
Prevent some `dead_code` warnings
- `inc_ref` is never used (but implementend) - `InStream` has to be implemented
master
Andreas Linz
5 years ago
parent
e0cae2df71
commit
eaf0260148
2 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/base.rs
+1
-0
src/ffi/functions.rs
+ 1
- 0
src/base.rs
View File
@ -370,6 +370,7 @@ impl Device {
// ref is a keyword
/// Add 1 to the reference count of `device`.
#[
allow(dead_code)
]
fn
inc_ref
(
&
self
)
{
unsafe
{
ffi
::
soundio_device_ref
(
self
.
device
)
}
}
+ 1
- 0
src/ffi/functions.rs
View File
@ -3,6 +3,7 @@ use std::os::raw::{c_int, c_double, c_char};
use
ffi
::
enums
::
*
;
use
ffi
::
structs
::
*
;
#[
allow(dead_code)
]
#[
link(name =
"
soundio
"
)
]
extern
"C"
{
/// Create a SoundIo context. You may create multiple instances of this to
Write
Preview
Loading…
Cancel
Save