mirror of
https://github.com/google/liblc3.git
synced 2026-05-17 09:08:02 +00:00
cpp: Work only with frame blocks
This commit is contained in:
@@ -74,12 +74,8 @@ class Base {
|
|||||||
int GetFrameSamples() {
|
int GetFrameSamples() {
|
||||||
return lc3_hr_frame_samples(hrmode_, dt_us_, sr_pcm_hz_); }
|
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
|
// Return the size of a frame block, from bitrate
|
||||||
int GetFrameBlockBytes(int bitrate) {
|
int GetFrameBytes(int bitrate) {
|
||||||
return lc3_hr_frame_block_bytes(
|
return lc3_hr_frame_block_bytes(
|
||||||
hrmode_, dt_us_, sr_hz_, nchannels_, bitrate); }
|
hrmode_, dt_us_, sr_hz_, nchannels_, bitrate); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user