mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-08 05:48:46 +08:00
Fix cfg feature compile bug
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
//! Lossless audio utilities.
|
||||
#[cfg(feature = "audio-flac")]
|
||||
use super::flac::*;
|
||||
use super::pcm::*;
|
||||
use crate::types::*;
|
||||
@@ -13,6 +14,7 @@ pub fn write_audio<W: Write + Seek, R: Read>(
|
||||
) -> Result<()> {
|
||||
match config.lossless_audio_fmt {
|
||||
LosslessAudioFormat::Wav => write_pcm(header, reader, writer)?,
|
||||
#[cfg(feature = "audio-flac")]
|
||||
LosslessAudioFormat::Flac => write_flac(header, reader, writer, config)?,
|
||||
}
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user