mirror of
https://github.com/talwat/lowfi
synced 2025-08-16 06:32:14 +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].
|
||||
/// Uses raw libc calls, and therefore is functional only on Linux.
|
||||
#[cfg(target_os = "linux")]
|
||||
pub fn silent_get_output_stream() -> eyre::Result<OutputStream, player::Error> {
|
||||
use crate::player;
|
||||
pub fn silent_get_output_stream() -> eyre::Result<rodio::OutputStream, crate::player::Error> {
|
||||
use libc::freopen;
|
||||
use rodio::OutputStream;
|
||||
use rodio::OutputStreamBuilder;
|
||||
use std::ffi::CString;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user