mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-27 01:25:45 -05:00
app/lib: move maximum volume const to lib
This commit is contained in:
parent
ec5c08ef95
commit
70e97e88c0
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue