(f)for licensing, controlling or, in view to preventing obstruction, inconvenience or annoyance to residents or passengers in the vecinity, prohibiting the playing of music in streets or in public places other than public buildings and the precincts thereof;