From e1f41fc8d44aa1846a70aea1ee07eec0c4220bd6 Mon Sep 17 00:00:00 2001 From: Antoine Soulier Date: Tue, 30 Jan 2024 14:31:39 -0800 Subject: [PATCH] cpp: Work only with frame blocks --- include/lc3_cpp.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/lc3_cpp.h b/include/lc3_cpp.h index bd16711..1949eb9 100644 --- a/include/lc3_cpp.h +++ b/include/lc3_cpp.h @@ -74,12 +74,8 @@ class Base { int GetFrameSamples() { return lc3_hr_frame_samples(hrmode_, dt_us_, sr_pcm_hz_); } - // Return the size of frames, from bitrate - int GetFrameBytes(int bitrate) { - return lc3_hr_frame_bytes(hrmode_, dt_us_, sr_hz_, bitrate); } - // Return the size of a frame block, from bitrate - int GetFrameBlockBytes(int bitrate) { + int GetFrameBytes(int bitrate) { return lc3_hr_frame_block_bytes( hrmode_, dt_us_, sr_hz_, nchannels_, bitrate); }