This is how it works:
Think of your alternator as a water pump.
And your battery as a reservoir, and your amp as a faucet.
The electricity will generally flow the past of least resistance.
While your amp is not drawing power, the power generated by your alternator is solely used for charging...