In a medium saucepan, cook onion and garlic in hot butter over medium heat for 3 to 4 minutes or until tender, stirring occasionally. Stir in flour, salt, and pepper. Add cream and wine all at once. Cook and stir until thickened and bubbly. Add cheese. Cook and stir for 1 minute more. Stir in parsley and basil.