Definition at line 3339 of file pl_mpeg.hpp.
3339 {
3341 return 0;
3342 }
3343
3346
3347
3348
3349
3350
3351
3352
3353
3354
3356 return 0;
3357 }
3358
3362
3363 if (
3366 ) {
3367 return 0;
3368 }
3369
3371 if (bitrate_index > 13) {
3372 return 0;
3373 }
3374
3376 if (samplerate_index == 3) {
3377 return 0;
3378 }
3379
3383
3384
3385
3386 if (
3391 )
3392 ) {
3393 return 0;
3394 }
3395
3400
3401
3404 }
3405 else {
3408 }
3409
3410
3412 if (hasCRC) {
3414 }
3415
3416
3417
3420 int frame_size = (144000 * bitrate / samplerate) + padding;
3421 return frame_size - (hasCRC ? 6 : 4);
3422}
static const int PLM_AUDIO_FRAME_SYNC
int plm_buffer_skip_bytes(plm_buffer_t *self, uint8_t v) FL_NOEXCEPT
static const int PLM_AUDIO_MODE_JOINT_STEREO
int plm_buffer_read(plm_buffer_t *self, int count) FL_NOEXCEPT
static const short PLM_AUDIO_BIT_RATE[]
static const int PLM_AUDIO_MODE_MONO
static const int PLM_AUDIO_LAYER_II
int plm_buffer_has(plm_buffer_t *self, size_t count) FL_NOEXCEPT
static const int PLM_AUDIO_MPEG_1
static const unsigned short PLM_AUDIO_SAMPLE_RATE[]
int plm_audio_find_frame_sync(plm_audio_t *self) FL_NOEXCEPT
void plm_buffer_skip(plm_buffer_t *self, size_t count) FL_NOEXCEPT
References FL_NOEXCEPT, PLM_AUDIO_BIT_RATE, plm_audio_find_frame_sync(), PLM_AUDIO_FRAME_SYNC, PLM_AUDIO_LAYER_II, PLM_AUDIO_MODE_JOINT_STEREO, PLM_AUDIO_MODE_MONO, PLM_AUDIO_MPEG_1, PLM_AUDIO_SAMPLE_RATE, plm_buffer_has(), plm_buffer_read(), plm_buffer_skip(), plm_buffer_skip_bytes(), and TRUE.
Referenced by plm_audio_create_with_buffer(), plm_audio_decode(), and plm_audio_has_header().