From 47817c4166937af24041a93e56ad9f841bf1e8f1 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Wed, 8 May 2024 14:15:42 -0400 Subject: fixups: memes working --- src/commands/meme/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/commands/meme/mod.rs') diff --git a/src/commands/meme/mod.rs b/src/commands/meme/mod.rs index 24fc50d..fe69b1c 100644 --- a/src/commands/meme/mod.rs +++ b/src/commands/meme/mod.rs @@ -16,7 +16,10 @@ use serenity::{ prelude::*, }; use songbird::input::{ - core::io::MediaSource, + core::{ + io::MediaSource, + probe::Hint, + }, AudioStream, AudioStreamError, Compose, @@ -127,9 +130,12 @@ impl Compose for Audio { let ms = std::io::Cursor::new(self.data.clone()); let ms: Box = Box::new(ms); + let mut hint = Hint::new(); + hint.mime_type("audio/opus"); + Ok(AudioStream { input: ms, - hint: None, + hint: Some(hint), }) } -- cgit v1.3.1