1 #include "funcprotos.h"
7 void quicktime_smhd_init(quicktime_smhd_t
*smhd
)
15 void quicktime_smhd_delete(quicktime_smhd_t
*smhd
)
19 void quicktime_smhd_dump(quicktime_smhd_t
*smhd
)
21 printf(" sound media header\n");
22 printf(" version %d\n", smhd
->version
);
23 printf(" flags %d\n", smhd
->flags
);
24 printf(" balance %d\n", smhd
->balance
);
25 printf(" reserved %d\n", smhd
->reserved
);
28 void quicktime_read_smhd(quicktime_t
*file
, quicktime_smhd_t
*smhd
)
30 smhd
->version
= quicktime_read_char(file
);
31 smhd
->flags
= quicktime_read_int24(file
);
32 smhd
->balance
= quicktime_read_int16(file
);
33 smhd
->reserved
= quicktime_read_int16(file
);
36 void quicktime_write_smhd(quicktime_t
*file
, quicktime_smhd_t
*smhd
)
38 quicktime_atom_t atom
;
39 quicktime_atom_write_header(file
, &atom
, "smhd");
41 quicktime_write_char(file
, smhd
->version
);
42 quicktime_write_int24(file
, smhd
->flags
);
43 quicktime_write_int16(file
, smhd
->balance
);
44 quicktime_write_int16(file
, smhd
->reserved
);
46 quicktime_atom_write_footer(file
, &atom
);