Function: writeSmhd()
ts
function writeSmhd(cursor, box): void;Defined in: writers/writeSmhd.ts:23
Write the smhd box (SoundMediaHeaderBox).
ISO/IEC 14496-12:2015 - 12.2.2
Parameters
cursor
The write cursor
box
The SoundMediaHeaderBox fields to write
Returns
void
Throws
RangeError if a value of the box does not fit its field.
Example
ts
const writer = writeIsoBox(
{
type: 'smhd',
version: 0,
flags: 0,
balance: 1,
},
{ writers: { smhd: writeSmhd } },
)