Skip to content

Commit 50fce70

Browse files
committed
fix typo
Signed-off-by: yilun.zhang <yilun.zhang@samsung.com>
1 parent d7e4f8d commit 50fce70

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

code/include/IAMF_decoder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ typedef struct IAMF_StreamInfo {
9696
IA_Profile additional_profile; /**< Additional IAMF profile */
9797

9898
IAMF_CodecID codec_ids[IAMF_MAX_CODECS];
99-
IAMF_SampleBitDepth sampling_rate; /**< Output sampling rate */
99+
IAMF_SamplingRate sampling_rate; /**< Output sampling rate */
100100
/**< Number of samples per channel per frame */
101101
uint32_t samples_per_channel_in_frame;
102102

@@ -284,7 +284,7 @@ int IAMF_decoder_set_normalization_loudness(IAMF_DecoderHandle handle,
284284
* @brief Set pcm output bitdepth.
285285
* @param [in] handle : iamf decoder handle.
286286
* @param [in] bit_depth : target bit depth in bit. Must be one of the
287-
* values defined in @ref iamf_sample_bit_depth_t
287+
* values defined in @ref IAMF_SampleBitDepth
288288
* (16, 24, or 32 bits).
289289
* @return @ref IAErrCode.
290290
*/
@@ -320,7 +320,7 @@ float IAMF_decoder_peak_limiter_get_threshold(IAMF_DecoderHandle handle);
320320
* @brief Set pcm output sampling rate.
321321
* @param [in] handle : iamf decoder handle.
322322
* @param [in] rate : sampling rate. Must be one of the values defined in
323-
* @ref IAMF_SampleBitDepth (7350, 8000, 11025, 16000,
323+
* @ref IAMF_SamplingRate (7350, 8000, 11025, 16000,
324324
* 22050, 24000, 32000, 44100, 48000, 64000, 88200,
325325
* 96000, 176400, or 192000 Hz).
326326
* @return @ref IAErrCode.

code/src/iamf_dec/iamf_decoder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ float IAMF_decoder_peak_limiter_get_threshold(IAMF_DecoderHandle handle) {
10371037

10381038
int IAMF_decoder_set_sampling_rate(IAMF_DecoderHandle handle, uint32_t rate) {
10391039
iamf_decoder_t *self = (iamf_decoder_t *)handle;
1040-
IAMF_SampleBitDepth valid_sampling_rates[] = {
1040+
IAMF_SamplingRate valid_sampling_rates[] = {
10411041
SAMPLING_RATE_8000, SAMPLING_RATE_11025, SAMPLING_RATE_16000,
10421042
SAMPLING_RATE_22050, SAMPLING_RATE_24000, SAMPLING_RATE_32000,
10431043
SAMPLING_RATE_44100, SAMPLING_RATE_48000, SAMPLING_RATE_64000,
@@ -1048,7 +1048,7 @@ int IAMF_decoder_set_sampling_rate(IAMF_DecoderHandle handle, uint32_t rate) {
10481048
if (!self) return IAMF_ERR_BAD_ARG;
10491049

10501050
for (int i = 0;
1051-
i < sizeof(valid_sampling_rates) / sizeof(IAMF_SampleBitDepth); ++i) {
1051+
i < sizeof(valid_sampling_rates) / sizeof(IAMF_SamplingRate); ++i) {
10521052
if (rate == valid_sampling_rates[i]) {
10531053
if (rate != self->ctx.sampling_rate) self->ctx.sampling_rate = rate;
10541054
ret = IAMF_OK;

0 commit comments

Comments
 (0)