alsa-lib icon indicating copy to clipboard operation
alsa-lib copied to clipboard

API memory allocator

Open sylware opened this issue 1 year ago • 4 comments

If I recall properly some data returned from the alsa lib API must be free using the C runtime free().

Would it be appropriate to move away from the C allocator to an API install-able memory allocator (like vulkan3D)?

Backward compatibility would be achieved since the "default memory allocator" would be the C one, if the C runtime is around.

Unless that part of the API is already deprecated (and I should not have used it).

sylware avatar Dec 20 '24 17:12 sylware

What's the target purpose?

perexg avatar Dec 20 '24 18:12 perexg

Huh? For the API To be cleanly independent of the C runtime, like the vulkan3D API.

sylware avatar Dec 21 '24 20:12 sylware

If you don't have a real requirement (a code which will benefit from this change), it's really low priority task. You can propose your implementation for the review.

perexg avatar Dec 21 '24 21:12 perexg

What? This is not the goal of this issue.

It is an issue to bring this subject on the table, in the mind of alsa people. Because, I realized the alsa user code I wrote require the usage of free() right while I was coding some vulkan3D stuff (which API is very carefull about just that).

sylware avatar Dec 22 '24 14:12 sylware