INNER CODE UNIT · C

pcm_remaining

tek256/astera · src/audio.c:374

      uint32_t pcm_remaining = ctx->pcm_length - pcm_total_length;

      if (pcm_remaining < song->info.max_frame_size) {
        break;
      }

      if (pcm_remaining == 0) {
        break;
      }

      uint32_t num_samples = stb_vorbis_get_samples_short_interleaved(
          song->vorbis, song->channels, ctx->pcm + pcm_total_length,
          pcm_remaining);

      if (num_samples > 0) {
        int32_t sample_count = song->channels * num_samples;
        pcm_total_length += sample_count;
      }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…