INNER CODE UNIT · C

a_vec3_dup

tek256/astera · src/audio.c:180

static inline void a_vec3_dup(a_vec3 dst, a_vec3 src) {
  dst[0] = src[0];
  dst[1] = src[1];
  dst[2] = src[2];
}

static a_layer* _a_get_layer(a_ctx* ctx, uint16_t layer_id) {
  return (ctx->layers[layer_id - 1].id == 0) ? 0 : &ctx->layers[layer_id - 1];
}

static uint8_t _a_layer_add(a_layer* layer, uint32_t id, uint8_t is_sfx) {
  if (is_sfx) {
    if (layer->sfx_count == layer->sfx_capacity) {
      ASTERA_FUNC_DBG("no free sfx slots in layer\n");
      return 0;
    }

    for (uint16_t i = 0; i < layer->sfx_capacity; ++i) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…