Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- | size = (
- | | ((uint64_t)(context->duration) * (uint64_t)song->sample_rate) /
- | | ((uint64_t)AV_TIME_BASE)
- | | ) *
- | | song->channels *
- | | song->nb_bytes_per_sample;
- if ((index * song->nb_bytes_per_sample + data_size) > size) {
- | | | | | size += data_size;
- | | | | | int8_t *ptr;
- | | | | | ptr = realloc(beginning, size);
- | | | | | if(ptr != NULL)
- | | | | | | beginning = ptr;
- song->nSamples += data_size / song->nb_bytes_per_sample;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement