app/lib: move maximum volume const to lib

This commit is contained in:
itsmattkc 2022-08-06 20:10:28 -07:00
parent ec5c08ef95
commit 70e97e88c0
2 changed files with 4 additions and 1 deletions

View file

@ -356,7 +356,7 @@ void MediaPanel::OpenMediaInstance(si::Object *o)
m->Open(o->ExtractToMemory());
m->SetStartOffset(float(o->time_offset_) * 0.001f);
m->SetVolume(float(o->volume_) / 79.0f);
m->SetVolume(float(o->volume_) / si::MxOb::MAXIMUM_VOLUME);
m->SetVirtualTime(0);
m_mediaInstances.push_back(m);

View file

@ -247,6 +247,9 @@ public:
// probably be moved
LIBWEAVER_EXPORT static const char *GetTypeName(Type type);
LIBWEAVER_EXPORT static std::vector<const char*> GetFlagsName(Flags flags);
static const int MAXIMUM_VOLUME = 79;
};
}