MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / command_volume

Function command_volume

src/blkdev_cdimage.cpp:1010–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008}
1009
1010static uae_u32 command_volume (int unitnum, uae_u16 volume_left, uae_u16 volume_right)
1011{
1012 struct cdunit *cdu = unitisopen (unitnum);
1013 if (!cdu)
1014 return -1;
1015 uae_u32 old = (cdu->cdda_volume[1] << 16) | (cdu->cdda_volume[0] << 0);
1016 cdu->cdda_volume[0] = volume_left;
1017 cdu->cdda_volume[1] = volume_right;
1018 return old;
1019}
1020
1021extern void encode_l2 (uae_u8 *p, int address);
1022

Callers

nothing calls this directly

Calls 1

unitisopenFunction · 0.70

Tested by

no test coverage detected