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

Function sys_command_cd_volume

src/blkdev.cpp:876–889  ·  view source on GitHub ↗

set CD audio volume */

Source from the content-addressed store, hash-verified

874
875/* set CD audio volume */
876uae_u32 sys_command_cd_volume (int unitnum, uae_u16 volume_left, uae_u16 volume_right)
877{
878 int v;
879 if (failunit (unitnum))
880 return 0;
881 if (!getsem (unitnum))
882 return 0;
883 if (state[unitnum].device_func->volume == NULL)
884 v = -1;
885 else
886 v = state[unitnum].device_func->volume (unitnum, volume_left, volume_right);
887 freesem (unitnum);
888 return v;
889}
890
891/* read qcode */
892int sys_command_cd_qcode (int unitnum, uae_u8 *buf, int sector, bool all)

Callers 4

akiko_threadFunction · 0.85
scsi_cd_emulateFunction · 0.85
do_playFunction · 0.85
tp_bputFunction · 0.85

Calls 3

failunitFunction · 0.85
getsemFunction · 0.85
freesemFunction · 0.85

Tested by

no test coverage detected