The CEO of wireless speaker maker Sonos, John MacFarlane, is resigning from the company he founded in 2002 due to increased competition from the likes of Amazon and other wireless speaker makers, a move that could potentially influence a close partnership with Apple.