You cannot pull audio directly from a game as though it were a media file. The music is packed in proprietary formats tied to the game's own audio engine.
What does work is finding the soundtrack released separately. Most notable games get an official OST, sold digitally or included with special editions, and that is both easier and better quality than any extraction attempt. Some composers also publish their work directly.