INNER CODE UNIT · C

data

tek256/astera · src/audio.c:149

  unsigned char* data = (unsigned char*)calloc(data_len, sizeof(unsigned char));
  if (!data) {
    ASTERA_FUNC_DBG("Unable to get file data from: %s\n", file)
    fclose(f);
    return 0;
  }

  uint32_t read_amount =
      (uint32_t)fread(data, sizeof(unsigned char), data_len, f);
  fclose(f);

  if (read_amount != data_len) {
    ASTERA_FUNC_DBG("Invalid read size compare\n");
    free(data);
    return 0;
  }

  if (size_ptr) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…