[Serialization] Fix SoundStreamParams Serialization functions

This commit is contained in:
SweetId 2024-03-11 19:36:51 -04:00
parent d304c56898
commit 2784d62ec9
2 changed files with 3 additions and 3 deletions

View File

@ -25,8 +25,8 @@ namespace Nz
bool IsValid() const;
};
NAZARA_CORE_API bool Serialize(SerializationContext& context, SoundStreamParams& params, TypeTag<SoundStreamParams>);
NAZARA_CORE_API bool Unserialize(SerializationContext& context, SoundStreamParams* params, TypeTag<SoundStreamParams>);
NAZARA_AUDIO_API bool Serialize(SerializationContext& context, SoundStreamParams& params, TypeTag<SoundStreamParams>);
NAZARA_AUDIO_API bool Unserialize(SerializationContext& context, SoundStreamParams* params, TypeTag<SoundStreamParams>);
class Mutex;
class SoundStream;

View File

@ -18,7 +18,7 @@ namespace Nz
{
Unserialize(context, params, TypeTag<ResourceParameters>());
Unserialize(context, "forceMono", &params->forceMono);
return true;
return params->IsValid();
}
bool SoundStreamParams::IsValid() const