Audio component now has panning, volume, playback speed and works

This commit is contained in:
Antoine Pilote
2023-09-22 21:30:56 -04:00
parent 1bc3eb7ddb
commit 60d6af1341
10 changed files with 165 additions and 46 deletions

View File

@@ -248,6 +248,10 @@ namespace Nuake
{
dragType = "_Image";
}
else if (fileExtension == ".wav" || fileExtension == ".ogg")
{
dragType = "_AudioFile";
}
ImGui::SetDragDropPayload(dragType.c_str(), (void*)(pathBuffer), sizeof(pathBuffer));
ImGui::Text(file->GetName().c_str());