mirror of
https://github.com/isledecomp/SIEdit.git
synced 2025-03-13 14:43:31 -04:00
lib: documented volume parameter of MxOb
This commit is contained in:
parent
a05c99d495
commit
d9d2373bc2
3 changed files with 6 additions and 6 deletions
|
@ -288,7 +288,7 @@ Object *Interleaf::ReadObject(FileBase *f, Object *o, std::stringstream &desc)
|
|||
o->id_ = f->ReadU32();
|
||||
desc << "ID: " << o->id_ << std::endl;
|
||||
o->flags_ = f->ReadU32();
|
||||
desc << "Flags: 0x" << std::hex << o->flags_ << std::endl;
|
||||
desc << "Flags: 0x" << std::hex << o->flags_ << std::dec << std::endl;
|
||||
o->unknown4_ = f->ReadU32();
|
||||
desc << "Unknown4: " << o->unknown4_ << std::endl;
|
||||
o->duration_ = f->ReadU32();
|
||||
|
@ -323,8 +323,8 @@ Object *Interleaf::ReadObject(FileBase *f, Object *o, std::stringstream &desc)
|
|||
desc << "Unknown30: " << o->unknown30_ << std::endl;
|
||||
|
||||
if (o->filetype_ == MxOb::WAV) {
|
||||
o->unknown31_ = f->ReadU32();
|
||||
desc << "Unknown31: " << o->unknown31_ << std::endl;
|
||||
o->volume_ = f->ReadU32();
|
||||
desc << "Unknown31: " << o->volume_ << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -477,7 +477,7 @@ void Interleaf::WriteObject(FileBase *f, const Object *o) const
|
|||
f->WriteU32(o->unknown30_);
|
||||
|
||||
if (o->filetype_ == MxOb::WAV) {
|
||||
f->WriteU32(o->unknown31_);
|
||||
f->WriteU32(o->volume_);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
MxOb::FileType filetype_;
|
||||
uint32_t unknown29_;
|
||||
uint32_t unknown30_;
|
||||
uint32_t unknown31_;
|
||||
uint32_t volume_;
|
||||
|
||||
uint32_t time_offset_;
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ public:
|
|||
* FileType | 4 | u32 | 4-byte ASCII ID for the file type
|
||||
* Unknown29 | 4 | u32 |
|
||||
* Unknown30 | 4 | u32 |
|
||||
* Unknown31 | 4 | u32 | (Optional) only populated for WAV files
|
||||
* Volume | 4 | u32 | Only populated for WAV files. Audio volume from 0 - 79.
|
||||
*/
|
||||
class MxOb : public RIFF
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue