Part of a series of patches to cleanup/simplify pcm/.
Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Differential D47736
sound: Dissolve pcm/intpcm.h christos on Nov 25 2024, 4:34 PM. Authored by Tags None Referenced Files
Subscribers
Details Part of a series of patches to cleanup/simplify pcm/. Sponsored by: The FreeBSD Foundation
Diff Detail
Event Timeline
Comment Actions If we do further work on the conversion functions, we may want to unit test them. Is that possible when we integrate them in feeder_format.c? I suppose a separate header would be easier, less extra dependencies? Comment Actions Perhaps it could be useful, but I think it's better to first decide on the design and then implement the new header. I would like to somehow avoid the macro magic. :) Comment Actions It's not exactly clear to me what you want to achieve. But you could replace some macro and table parts with a function that takes the AFMT_* as a parameter, just make sure the function is inlined and always called with a literal as the format parameter. Although that may result in a performance hit for debug builds, I didn't look at all the details yet. |