Skip to content

Commit

Permalink
fix: Rename Version to AmVersion.
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Nana <[email protected]>
  • Loading branch information
na2axl committed Oct 5, 2024
1 parent d745172 commit 7619397
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/SparkyStudios/Audio/Amplitude/Core/Engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace SparkyStudios::Audio::Amplitude
*
* @return The version string structure
*/
[[nodiscard]] virtual const Version* Version() const = 0;
[[nodiscard]] virtual const AmVersion* Version() const = 0;

#pragma endregion

Expand Down
4 changes: 2 additions & 2 deletions include/SparkyStudios/Audio/Amplitude/Core/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace SparkyStudios::Audio::Amplitude
*
* @ingroup core
*/
struct Version
struct AmVersion
{
/**
* @brief Version number, updated only on major releases.
Expand Down Expand Up @@ -67,7 +67,7 @@ namespace SparkyStudios::Audio::Amplitude
*
* @ingroup core
*/
AM_API_PUBLIC const struct Version& GetVersion();
AM_API_PUBLIC const AmVersion& GetVersion();
} // namespace SparkyStudios::Audio::Amplitude

#endif // _AM_CORE_VERSION_H
2 changes: 1 addition & 1 deletion src/Core/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,7 @@ namespace SparkyStudios::Audio::Amplitude
return _state->total_time;
}

const struct Version* EngineImpl::Version() const
const struct AmVersion* EngineImpl::Version() const
{
return _state->version;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace SparkyStudios::Audio::Amplitude
*/
[[nodiscard]] EngineInternalState* GetState() const;

[[nodiscard]] const struct Version* Version() const override;
[[nodiscard]] const struct AmVersion* Version() const override;
bool Initialize(const AmOsString& configFile) override;
bool Deinitialize() override;
[[nodiscard]] bool IsInitialized() const override;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/EngineInternalState.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ namespace SparkyStudios::Audio::Amplitude

HRIRSphereImpl* hrir_sphere;

const struct Version* version;
const struct AmVersion* version;
};

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace SparkyStudios::Audio::Amplitude
* @brief String which identifies the current version of Amplitude.
*/
// clang-format off
static const struct Version kVersion = {
static const AmVersion kVersion = {
AM_VERSION_MAJOR,
AM_VERSION_MINOR,
AM_VERSION_PATCH,
Expand All @@ -35,7 +35,7 @@ namespace SparkyStudios::Audio::Amplitude
};
// clang-format on

const struct Version& GetVersion()
const AmVersion& GetVersion()
{
return kVersion;
}
Expand Down

0 comments on commit 7619397

Please sign in to comment.