mirror of
https://github.com/talwat/lowfi
synced 2025-08-17 15:12:37 +00:00
fix: linux audio output stream
This commit is contained in:
parent
fa0d1f52c3
commit
e4d5f8e456
@ -1,10 +1,8 @@
|
|||||||
/// This gets the output stream while also shutting up alsa with [libc].
|
/// This gets the output stream while also shutting up alsa with [libc].
|
||||||
/// Uses raw libc calls, and therefore is functional only on Linux.
|
/// Uses raw libc calls, and therefore is functional only on Linux.
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
pub fn silent_get_output_stream() -> eyre::Result<OutputStream, player::Error> {
|
pub fn silent_get_output_stream() -> eyre::Result<rodio::OutputStream, crate::player::Error> {
|
||||||
use crate::player;
|
|
||||||
use libc::freopen;
|
use libc::freopen;
|
||||||
use rodio::OutputStream;
|
|
||||||
use rodio::OutputStreamBuilder;
|
use rodio::OutputStreamBuilder;
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user