// // RPAudioProtocol.h // red_protocol // // Created by 杜家兑 on 2024/3/1. // #ifndef RPAudioProtocol_h #define RPAudioProtocol_h #include "RPMacros.h" #include #include #include NS_RP_BEGIN struct AudioParam { std::string name; float fValue1 = 0.f; float fValue2 = 0.f; float fValue3 = 0.f; std::string SValue1; std::string SValue2; std::string SValue3; }; /*************************************************************************** MARK: 实现的协议接口。 ****************************************************************************/ class AudioProtocol { public: /// 播放音频协议接口 virtual void playAudio(const std::string& str) { assert(false); }; virtual void playAudio(const std::string& str1, const std::string& str2) { assert(false); }; virtual void playAudio(const std::string& str1, const std::string& str2, bool force, const std::vector& audioParams) { assert(false); }; AudioProtocol() = default; virtual ~AudioProtocol() = default; }; NS_RP_END #endif /* RPAudioProtocol_h */