steam-audio icon indicating copy to clipboard operation
steam-audio copied to clipboard

[C API] Const correctness

Open Aceeri opened this issue 3 years ago • 2 comments

Heyo, I was wondering if there was any possibility of having some "const correctness" to the input buffers of effects and the parameters/settings of creating contexts/hrtf/simulators/etc.

For example for applying the binaural effect to an input buffer:

IPLAPI IPLAudioEffectState IPLCALL iplBinauralEffectApply(IPLBinauralEffect effect, IPLBinauralEffectParams* params, IPLAudioBuffer* in, IPLAudioBuffer* out);

being changed to

IPLAPI IPLAudioEffectState IPLCALL iplBinauralEffectApply(IPLBinauralEffect effect, const IPLBinauralEffectParams* params, const IPLAudioBuffer* in, IPLAudioBuffer* out);

Or are they writing to the parameters/input buffer?

Aceeri avatar Feb 22 '22 08:02 Aceeri

This issue has been automatically marked stale, and will automatically be closed in 30 days if no activity occurs.

github-actions[bot] avatar May 16 '24 16:05 github-actions[bot]

commenting to keep open

lakulish avatar Jun 14 '24 20:06 lakulish