뭔지 모르는데 일단 변경사항

This commit is contained in:
2024-05-12 03:54:44 +09:00
parent b7b1018871
commit 7501164625
2 changed files with 5 additions and 2 deletions

View File

@@ -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 = {

View File

@@ -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);