mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
feat(audio): integrate OpenAL audio engine with WAV/MP3/FLAC support
This commit is contained in:
@@ -20,7 +20,8 @@ struct ChunkRenderData {
|
||||
};
|
||||
} // namespace
|
||||
|
||||
ClientWorld::ClientWorld() : m_player(*this) {}
|
||||
ClientWorld::ClientWorld(AudioEngine& auido)
|
||||
: m_player(*this), m_audio(auido) {}
|
||||
|
||||
ClientWorld::~ClientWorld() {
|
||||
stop_client_thread();
|
||||
@@ -356,6 +357,7 @@ void ClientWorld::init(std::string_view player_name,
|
||||
// request login
|
||||
Logger::info("Send Login Request");
|
||||
m_client->send(make_packet(req), 0);
|
||||
m_audio.play_bgm();
|
||||
}
|
||||
|
||||
void ClientWorld::start_client_thread(std::string_view uuid) {
|
||||
|
||||
Reference in New Issue
Block a user