[Serialization] Fix SoundStreamParams Serialization functions
This commit is contained in:
parent
d304c56898
commit
2784d62ec9
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace Nz
|
|||
{
|
||||
Unserialize(context, params, TypeTag<ResourceParameters>());
|
||||
Unserialize(context, "forceMono", ¶ms->forceMono);
|
||||
return true;
|
||||
return params->IsValid();
|
||||
}
|
||||
|
||||
bool SoundStreamParams::IsValid() const
|
||||
|
|
|
|||
Loading…
Reference in New Issue