diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-01-27 08:49:41 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-01-27 08:49:41 -0600 |
| commit | c8f969feb5f8dcdbe7716403e0a48d63ebb19352 (patch) | |
| tree | 05401cc15f0cbdc72b628d713649ba9e344e0ce5 /tools | |
| parent | cb6193bbc76ee702128c44a95bc8184abcb04177 (diff) | |
samd: audio-dma: avoid memory allocations
With the previous change, stereo mp3 playback changed from needing
4 2304-byte allocations to needing 2 4604-byte allocations. This was
enough to cause MemoryErrors with regularity.
By using m_realloc() here, the existing memory region can be used.
m_realloc() also works on the first invocation, because m_realloc(NULL, sz)
just calls m_malloc of sz.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
