Update oboe to newest version. Fix support of input/output oboe streams

This commit is contained in:
enfipy 2020-10-29 19:32:11 +02:00
parent 01c5ee600a
commit bf766c1d5d
No known key found for this signature in database
GPG key ID: 7B671F66C66BD126
5 changed files with 38 additions and 21 deletions

View file

@ -15,7 +15,7 @@ pub fn to_stream_instant(duration: Duration) -> StreamInstant {
)
}
pub fn stream_instant<T: oboe::AudioStream + ?Sized>(stream: &mut T) -> StreamInstant {
pub fn stream_instant<T: oboe::AudioStreamSafe + ?Sized>(stream: &mut T) -> StreamInstant {
const CLOCK_MONOTONIC: i32 = 1;
let ts = stream
.get_timestamp(CLOCK_MONOTONIC)