Posts: 26,215
Joined: Oct 2003
Reputation:
187
mrmario64:
is your receiver capable of ac3? if not, turn off "enable ac3" in the ms dash.
the high quality resampling method is not direct pass through. what is happening is we are bypassing the mcpx's upsampling by doing it first in software. the rest of the mcpx chain is still being used. this has no noticeable (to me, anyway) detrimental effects, while it enables a number of benefits such as volume control and eqing at a later date.
so: you don't need pass through enabled - that is just for ac3 and dts tracks.
to test, use the udial.flac file above. you should clearly tell the difference between the resampling methods.
also, i'll be moving the cddaplayer code over to use the same method tonight if i get time.
cheers,
jonathan
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
btw j... a friend tipped me that p.p. (foobar2000) has optimized ssrc ~100% in foobar. sources are available
i tried to play a svcd with resampling on for videos and it wasnt fluent.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
ssrc uses quite a bit of cpu.
i've seen the fb2k sources, and they're not majorly different. not sure of the licensing of those, anyway.
part of the reason fb2k may work faster, is that they've taken the conversion from short->float/double->short out of the equation (everything runs in floating point up until output to the audio device). other than that, there's not a lot that is different that i could see. just optimized for foobar's method of passing data.
cdda resampling is also in - seems to be working fine.
agreed with the cpu hit - it's bigger than i thought it would be.
most videos i have are 48khz, so no resampling to worry about.
Posts: 761
Joined: Dec 2003
Reputation:
0
Butcher
Retired Developer
Posts: 761
depending on the operation, floats are faster than shorts anyway. for addition or subtraction the shorts are quicker, but multiplication, division and more complex stuff tends to be faster with floats. also, is any sse/mmx being used? if not they could help, or maybe even using pixel/vertex shaders.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
butcher:
i'm not up with the play on sse/mmx stuff, so i have no idea how to optimise for this sort of stuff.
i'm sure it could be optimised quite a bit yet. for instance, there's quite a a few conditionals that could be taken out of loops etc. not sure how efficient the compiler is at sorting that sort of stuff out.
feel free to look through the code in ssrc.cpp if you have some free time!
i'm off to google on optimising for sse/mmx.
cheers,
jonathan
Posts: 14
Joined: Feb 2004
Reputation:
0
something to look into..
the 48khz seems to work great.. my sony es reciever shows that its doing 48khz.
but ive found that when you have 48khz enabled.. when you play a shoutcast streams and then goto the visuals the music slows down.. only when you are viewing the visuals.. while just in the menus and while the screen saver is on shoutcast plays fine.. turn off 48khz everything works fine..
mp3s on my hd and smb, cdda dosnt not have this problem. they play fine..
snyper