Skip to content

Commit

Permalink
AudioFileCache now returns wave data correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
feliwir committed Aug 29, 2023
1 parent be3ecdd commit 744d001
Show file tree
Hide file tree
Showing 7 changed files with 766 additions and 580 deletions.
12 changes: 12 additions & 0 deletions src/game/common/audio/audioeventrts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,18 @@ void AudioEventRTS::Generate_Filename()
}
}

/**
* Apply the filename inside the info directly
*/
void AudioEventRTS::Apply_Filename_From_Info()
{
if (m_eventInfo == nullptr) {
return;
}

m_filename = m_eventInfo->Get_File_Name();
}

/**
* Generates the information needed to play this event from the event info.
*
Expand Down
1 change: 1 addition & 0 deletions src/game/common/audio/audioeventrts.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class AudioEventRTS
AudioEventRTS &operator=(const AudioEventRTS &that);

void Generate_Filename();
void Apply_Filename_From_Info();
void Generate_Play_Info();
void Decrease_Loop_Count();
void Advance_Next_Play_Portion();
Expand Down
Loading

0 comments on commit 744d001

Please sign in to comment.