Added WarnIfTrue also warns for using some functions with StreamedRawPCM
This commit is contained in:
@@ -33,6 +33,7 @@ public:
|
||||
|
||||
const SoundState GetState();
|
||||
const SoundType GetSoundType();
|
||||
const uint64_t GetPlayedSampleCount();
|
||||
|
||||
const float GetPlaybackTime();
|
||||
bool SetPlaybackTime(float time);
|
||||
@@ -119,8 +120,13 @@ private:
|
||||
friend class Sound;
|
||||
};
|
||||
|
||||
// For MA
|
||||
void ThrowOnRuntimeError(std::string message,
|
||||
ma_result errorType = ma_result::MA_ERROR);
|
||||
|
||||
// Generalised
|
||||
void ThrowOnRuntimeError(std::string message, bool comparison);
|
||||
void WarnIfTrue(std::string message, bool comparison = true);
|
||||
|
||||
} // namespace ChargeAudio
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user