removed device enumeration code that tries to find closest match to requested buffer size because it is unreliable at choosing a usable output