Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Allocate on the Audio Thread and Why You Might Want To - Allocations Considered Beneficial

ADC - Audio Developer Conference via YouTube

Overview

Explore memory allocation techniques for the audio thread in this 39-minute conference talk from the Audio Developer Conference. Delve into the benefits of allocating memory on the audio thread, challenging traditional warnings against such practices. Learn how to leverage C++'s std::pmr namespace for low-latency audio processing, potentially expanding feature sets and improving code quality. Discover strategies for using custom allocators, implementing polymorphic allocators, and working with containers and collections. Examine performance benchmarks, solutions to common problems, and real-world use cases. Gain insights into free list allocation and address online questions to enhance your understanding of memory management in audio programming.

Syllabus

Intro
Audio thread latency
Why allocate memory
How to use your own allocators
Vector of T
PMR
Memory Resource Header
Abstract Base Class
Polymorphic Allocator
Type Depths
Interface Overview
Concrete Types
Upstream Resource
Pool
Polymorphic Alligator
Propagationallocate
Containers and Collections
Unit Tests
The Ultimate Problem
Solutions
Performance
Benchmarking
More Resources
Thank You
Comments
Questions
Use Cases
Free List
Online Questions

Taught by

ADC - Audio Developer Conference

Reviews

Start your review of How to Allocate on the Audio Thread and Why You Might Want To - Allocations Considered Beneficial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.