Fix some warnings
Former-commit-id: e60d535f0c9b73209109b1040f6780b10c6b1174
This commit is contained in:
parent
26816c6072
commit
d218325b12
|
@ -61,8 +61,8 @@ impl VideoInterface for Hardware {
|
|||
}
|
||||
impl AudioInterface for Hardware {
|
||||
fn push_sample(&mut self, sample: StereoSample<i16>) {
|
||||
self.audio_buffer.prod.push(sample.0);
|
||||
self.audio_buffer.prod.push(sample.1);
|
||||
self.audio_buffer.prod.push(sample.0).unwrap();
|
||||
self.audio_buffer.prod.push(sample.1).unwrap();
|
||||
}
|
||||
}
|
||||
impl InputInterface for Hardware {
|
||||
|
@ -281,7 +281,7 @@ pub mod bindings {
|
|||
_obj: JClass,
|
||||
ctx: jlong,
|
||||
) -> jshortArray {
|
||||
let mut ctx = lock_ctx(ctx);
|
||||
let ctx = lock_ctx(ctx);
|
||||
|
||||
let mut hw = ctx.hwif.borrow_mut();
|
||||
|
||||
|
@ -292,7 +292,7 @@ pub mod bindings {
|
|||
}
|
||||
|
||||
let arr = env.new_short_array(samples.len() as jsize).unwrap();
|
||||
env.set_short_array_region(arr, 0, &samples);
|
||||
env.set_short_array_region(arr, 0, &samples).unwrap();
|
||||
|
||||
return arr;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use jni::objects::*;
|
||||
use jni::sys::*;
|
||||
use jni::{JNIEnv, JavaVM};
|
||||
use jni::JNIEnv;
|
||||
|
||||
use rustboyadvance_core::core::cartridge;
|
||||
|
||||
|
|
Reference in a new issue