src/sound.cpp
branchnoai
changeset 9626 79f2b5a0cdd7
parent 9624 b71483f2330f
child 9628 b5c2449616b5
equal deleted inserted replaced
9625:3301b1b3889c 9626:79f2b5a0cdd7
   150 	MxSetChannelVolume(mc, left_vol * 128 / PANNING_LEVELS, right_vol * 128 / PANNING_LEVELS);
   150 	MxSetChannelVolume(mc, left_vol * 128 / PANNING_LEVELS, right_vol * 128 / PANNING_LEVELS);
   151 	MxActivateChannel(mc);
   151 	MxActivateChannel(mc);
   152 }
   152 }
   153 
   153 
   154 
   154 
   155 static const byte _vol_factor_by_zoom[] = {255, 190, 134, 87, 49};
   155 static const byte _vol_factor_by_zoom[] = {255, 190, 134, 87};
   156 assert_compile(lengthof(_vol_factor_by_zoom) == ZOOM_LVL_END);
   156 assert_compile(lengthof(_vol_factor_by_zoom) == ZOOM_LVL_END);
   157 
   157 
   158 static const byte _sound_base_vol[] = {
   158 static const byte _sound_base_vol[] = {
   159 	128,  90, 128, 128, 128, 128, 128, 128,
   159 	128,  90, 128, 128, 128, 128, 128, 128,
   160 	128,  90,  90, 128, 128, 128, 128, 128,
   160 	128,  90,  90, 128, 128, 128, 128, 128,