You should be able to connect the X41 directly from your HDTV's optical output. The X41 does not have DTS processing, only Dolby--but that should be fine for use with your Xbox. Just make sure that the LED for Dolby Digital is illuminated when you play a game or watch a movie. (The Pro Logic LED will be on when you're just in the Xbox dashboard or pre-game lobby).
If you are only getting Pro Logic during games/movies, then you are likely getting a stereo signal from your HDTV. In this case, you will need to get the Xbox HDMI audio adapter:
AVAILABLE HERE
Unlike other AV cables, this adapter can fit in the Xbox at the same time as an HDMI cable. It is also ideal because with this, you can also separate the audio going to your X41 and also to your TV speakers. (So they can be muted when not needed). Since the X41 has the digital pass-thru output, connecting it to a home theater sound system is pretty simple as well. This too allows you to bypass any external speakers if needed.
Similar to the Xbox HDMI audio adapter, you could technically go this route as well since it will do the same thing:
YouTube - Optical and HDMI on Xbox 360 at same time - adapter hack