INNER CODE UNIT · C

shorts_processed

SasLuca/rayfork · source/audio/rayfork-audio-loading.c:99

                int shorts_processed = stb_vorbis_get_samples_short_interleaved(ogg_decoder, ogg_info.channels, dst, result.sample_count * result.channels);
                result.valid = result.sample_count * result.channels;
            }
        }
    }
    RF_SET_GLOBAL_DEPENDENCIES_ALLOCATOR(RF_NULL_ALLOCATOR);

    return result;
}

RF_API rf_audio_player rf_load_static_audio_player_from_flac_to_buffer(const void* src, int src_size, void* dst, int dst_size, rf_allocator temp_allocator)
{
    if (!src || src_size <= 0 || !dst || dst_size < 0) return (rf_audio_player){0};
    rf_audio_player result = {0};

    drflac flac_decoder = {0};
    drflac_allocation_callbacks flac_decoder_allocator = {
        .pUserData = &temp_allocator,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…