The spent shell casings for the B-25G no doubt rattled around on the floor until the poor "gunner" (Navigator) had time to do something with them.
Read of one such mission in the Med. Of course the pilot wanted to get off as many rounds as possible during each pass and kept telling the navigator to load them faster. Finally, disgusted at not being able to hit much of anything, the pilot called for a course to head home. The navigator, stripped to to the waist, sweating profusely, and stumbling over the shell casings replied, "Fly, West, sir." The pilot responded that was not a proper course. The navigator went to his table, examined some maps, measured a course, and replied, "Don't fly West, sir. Fly 270 degrees."
The B-25H had a lighter version of the cannon, the T9, and it seemed to be sort of semi-automatic and could fire faster. The book "B-25 Mitchell The Ultimate Look" has extensive information on the cannon installation and procedures.