From 75011646256ed52a672f6ea8f78afbf725ce62fa Mon Sep 17 00:00:00 2001 From: HappyTanuki Date: Sun, 12 May 2024 03:54:44 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AD=94=EC=A7=80=20=EB=AA=A8=EB=A5=B4?= =?UTF-8?q?=EB=8A=94=EB=8D=B0=20=EC=9D=BC=EB=8B=A8=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=EC=82=AC=ED=95=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Commands/Play.cpp | 5 +++-- src/MusicQueue.cpp | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Commands/Play.cpp b/src/Commands/Play.cpp index 07b1304..704c1a3 100644 --- a/src/Commands/Play.cpp +++ b/src/Commands/Play.cpp @@ -64,9 +64,10 @@ void commands::Play::operator()(const dpp::slashcommand_t& event) time_t SongLength = int(document["duration"]); char SongLengthStr[10]; tm t; + t.tm_mday = SongLength / 86400; + t.tm_hour = (SongLength % 86400)/3600; + t.tm_min = (SongLength % 3600)/60; t.tm_sec = SongLength%60; - t.tm_min = SongLength/60; - t.tm_hour = SongLength/360; strftime(SongLengthStr, sizeof(SongLengthStr), "%X", &t); FQueueElement Data = { diff --git a/src/MusicQueue.cpp b/src/MusicQueue.cpp index 7719736..b2b90cf 100644 --- a/src/MusicQueue.cpp +++ b/src/MusicQueue.cpp @@ -136,6 +136,8 @@ void MusicQueue::markerCallback() return; } + //v->voiceclient->error(4014); + /* load the audio file with oggz */ OGGZ *track_og = oggz_open(("Music/" + music.fileName + ".ogg").c_str(), OGGZ_READ);