#include "game_types.h"

/* Sound_WriteEnvelope @ 0x08010260 (real 30B) -- envelope step via Float_ToInt then collision response. Mirrors src/matched/Sound_WriteEnvelope.c. */
/* Runs Float_ToInt over (b, c, &d) -- d's address is its spill slot -- then
   returns the collision response for b. 5-arg shape per the spill idiom. */
extern int Float_ToInt(int a, int b, int *c);
extern int Physics_CollisionResponse(int a);

int Sound_WriteEnvelope(int a, int b, int c, int d)
{
    (void)a;
    Float_ToInt(b, c, &d);
    return Physics_CollisionResponse(b);
}
