Stop crash when alsa is used as file extension. Moved and corrected a check that was in the wrong place.
Stop crash when alsa is used as file extension.
Moved and corrected a check that was in the wrong place.

uklauer/sox,cbagwell/sox,uklauer/sox,Motiejus/sox,Distrotech/sox,cbagwell/sox,mhartzel/sox_personal_fork,Motiejus/sox,uklauer/sox,jacksonh/sox,MageSlayer/sox,jacksonh/sox,davel/sox,mhartzel/sox_personal_fork,MageSlayer/sox,Distrotech/sox,CaptainHayashi/sox,pcqpcq/sox,Distrotech/sox,Motiejus/sox,davel/sox,mhartzel/sox_personal_fork,davel/sox,pcqpcq/sox,uklauer/sox,cbagwell/sox,CaptainHayashi/sox,davel/sox,CaptainHayashi/sox,MageSlayer/sox,pcqpcq/sox,CaptainHayashi/sox,cbagwell/sox,mhartzel/sox_personal_fork,jacksonh/sox,Distrotech/sox,jacksonh/sox,Motiejus/sox,pcqpcq/sox,MageSlayer/sox,MageSlayer/sox