The generator is kept on the aft deck. Since I am tied to a mooring the generator will always be on lo-warts (wind side) That means the noise and fumes blow away from me.
The muffler ends outside the boat just above the waterline. It won't do to put the muffler into the water as that would be disastrous to the compression of the engine.
Use your head, ram the wall till it falls.