Separate Music and Video Audio Settings (Analog for one and Digital output on other)?
#46
jmarshall Wrote:This will work fine as you described. When playing music (with paplayer) the xbox uses the same path for analog and digital output (ie we go through the normal audio processing chain) so both outputs work.
Cheers,
Jonathan

I would really like to disable the audio parocessing for playback of music. I got a monster digital output cable thinking that It would give me an unprocessed audio output for music, but to my shagrin it seems that the player or other module is still doing something strange to the decompression or playback where it sounds lifeless. I am an audio professional and I would love to help in making audio playback as pleasing as possible.

Maybe the paplayer is normalizing everything or there is a audio-compression algorithm in the playback.

thank You

-Charles
Reply
#47
the xbox can only output 48khz audio.
most audio isnt 48khz. so processing (upsampling) is a neccesity.
Reply
#48
It sounds as the xbox is doing mere than upsampling though. To my ears there is an algorith that is doing something pretty extreme to the audio. Is there any block diagram that shows the actual blocks(proceses) that the audio travels through?
Reply
#49
1. Decode (most to PCM, some (mp3, mpc) to float)

2. Convert to 32bit float if it's PCM.

3. Apply any replaygaining (pure scaling).

4. Resample to 48kHz, 16bit using SSRC and output.

The only non-lossless stage is step 4, which is unavoidable (unless you have 48kHz 16bit audio, then it's lossless).

Note that the "output" section could have whatever processing you enable, such as output to all speakers, which converts to AC3.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#50
Thanks, All these steps are done from paplayer or mplayer?

I assume the decoding is done with the players. right?

Is there anyway to disable the "pure scaling"


maybe I'll take a 48K audio file and see what it sounds like, but that should be the least likely culprit. Generally losses only occur in downsampling especially in 24bit to 16bit. However ther may be a HF cut filter before or after the upsampling.
Reply
#51
The scaling is not applied if no replaygaining is performed.

The decoding for almost all music playback is done in paplayer.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#52
Is there a way to disable the replay gaining? IIRC I only saw dB increments to shoose from.
Reply
#53
You can completely disable it by turning it off, and setting the preamp gain for non-gained files to 89dB (the default).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#54
OK, I see, I had it off and still found the sound unaceptable. do you know what PAPlayer does in it's decoding? I checked out the site and the player seems to tout itself as "psychoacoustic". Maybe there are some comands to keep it from processing too much.
Reply
#55
What is SSRC?

BTW I mean no insult in criticizing XBMC or PAplayer, XBMC is one of the coolest programs aroundBig Grin
Reply
#56
Feel free to look at the code. The only processing performed is what I detailed before.

SSRC is the resampler we use - it's a reasonably fast, good quality resampler.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#57
I am not a programmer, so the code would mean nothing to me.

I read a bit about SSRC and saw it has dithering cabilities. Is it necessary to make the jump from 16 bit to 32 bit? Maybe I am wrong but in stage one for mp3 it would be decoded from 16bit to 32 bit-float right?


did you get the paplayer decoding code from GPL code?
Reply
#58
I just A-B'd VLC player and XBMC playback of some mp3s. VLC uses the free MAD decoder

http://www.underbit.com/products/mad/

You have may already tried this option though.
Reply
#59
Yes, the majority of the code used in XBMC is GPL'd code from popular decoding libraries - the wiki page on paplayer shows where it's all from.

MP3 is not inherently 16bit - indeed, it has no bitdepth. The original source was most likely 16bit audio, but once it's encoded, the concept of bitdepth is meaningless. XBMC uses MAD to decode to 32bit floats.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#60
Good, since it uses MAD we can cross the decoding off the list I guess, as long as the impementation of MAD is generic. -sorry I missed the wikki references.

Have you played around with the 48K conversion variables? Going from 32 bit to 16 bit is a huge jump too.
Reply

Logout Mark Read Team Forum Stats Members Help
Separate Music and Video Audio Settings (Analog for one and Digital output on other)?0