Refactor code to open and close the alsa device. Now it opens the device on play and closes it on pause or stop. Should speed up return of availability of device when client pauses or stops.