Sound.cpp Sound.cppCPP1/* Copyright Statement:2 *3 * (C) 2021-2024 Cubios Inc. All rights reserved.4 */5 6#include "Sound.h"7 8namespace Cubios 9{10 Sound::Sound(const std::string& name) 11 {12 id = SND_getAssetId(name.c_str());13 }14 15 Sound::~Sound() { }16 17 void Sound::Play(uint8_t volume) 18 {19 SND_play(id, volume);20 }21 22 void Sound::Stop()23 {24 SND_stop();25 }26 27 bool Sound::IsPlaying()28 {29 return SND_isPlaying();30 }31} // namespace Cubios32 Wrapped for easier reading. Turn wrap off to inspect exact line lengths.WrappedExplain with AIAI