1 /* 2 * Copyright (c) 2024, Alliance for Open Media. All rights reserved 3 * 4 * This source code is subject to the terms of the BSD 3-Clause Clear License 5 * and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear 6 * License was not distributed with this source code in the LICENSE file, you 7 * can obtain it at www.aomedia.org/license/software-license/bsd-3-c-c. If the 8 * Alliance for Open Media Patent License 1.0 was not distributed with this 9 * source code in the PATENTS file, you can obtain it at 10 * www.aomedia.org/license/patent. 11 */ 12 13 #ifndef CLI_ADM_TO_USER_METADATA_ADM_FORMAT_INFO_CHUNK_H_ 14 #define CLI_ADM_TO_USER_METADATA_ADM_FORMAT_INFO_CHUNK_H_ 15 16 #include <cstdint> 17 18 namespace iamf_tools { 19 namespace adm_to_user_metadata { 20 21 /*!\brief Represents the format info chunk ("fmt ") of a wav audio file. */ 22 struct FormatInfoChunk { 23 uint16_t format_tag; 24 uint16_t num_channels; 25 uint32_t samples_per_sec; 26 uint32_t avg_bytes_per_sec; 27 uint16_t block_align; 28 uint16_t bits_per_sample; 29 }; 30 31 } // namespace adm_to_user_metadata 32 } // namespace iamf_tools 33 34 #endif // CLI_ADM_TO_USER_METADATA_ADM_FORMAT_INFO_CHUNK_H_ 35