[Linux] Tone too high
#1
Hi folks,

after updating to recent Nvidia driver and actual SVN this morning, i noticed that every movie works fine (like before) but my MP3s sounds like the chipmunks are singing...

configured : --disable-pulse , everything else on, 64bit Jaunty, also actual

Sound output via HDMI to my Receiver Harman Kardon AVR645

is there any way to pitch the output down to normal level?
new system in the house...
Reply
#2
Your Audio card does not support the samplerate, either use advancedsettings and resampleaudio to force output to 48khz but better is use the plug interface with alsa.

plughw:0,3 is normal for HDMI but depends on your hw.
the numbers can be found in aplay -l

Check aplay -l and alter settings -> System -> Audio Hardware. device.
If you have problems please read this before posting

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

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
i really think that my mainboard support 48khz output...

Quote:Enjoy high-quality sound system on your PC! The onboard 8-channel HD audio (High Definition Audio, previously codenamed Azalia) CODEC enables high-quality audio output, jack-detect feature automatically.

http://www.asus.de/products.aspx?l1=3&l2...odelmenu=1

Quote:Realtek ALC1200 8 -Channel High-Definition Audio CODEC
DTS Surround Sensation Ultra PC

http://www.asus.de/products.aspx?modelme...3=812&l4=0
new system in the house...
Reply
#4
my settings in /system/audio-hardware in xbmc from top:

1. Audio output : digital
2. support AC3 : no
3. support DTS : yes
4. audio output hardware : hdmi
5. passthrough output device: hdmi
6. downmix multichannel audio to stereo : no
new system in the house...
Reply
#5
could it be something with up-conversion? because my mp3's are all in 44.1khz, but my receiver say that the audio comes in 48khz... only a thought?
new system in the house...
Reply
#6
here my .asoundrc

Quote:# ALSA library configuration file

# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
# </home/markus/.asoundrc.asoundconf>

pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
format S32_LE
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

maybe the rate to 48khz is wrong? shouldnt it depend on the material what i try to play?
new system in the house...
Reply
#7
aplay -L

Quote:markus@mediacenter:~/xbmc/XBMC$ aplay -L
front:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
null
Discard all samples (playback) or generate zero samples (capture)
markus@mediacenter:~/xbmc/XBMC$
new system in the house...
Reply
#8
aplay -l

Quote:markus@mediacenter:~/xbmc/XBMC$ aplay -l
**** Liste von PLAYBACK Geräten ****
Karte 0: NVidia [HDA NVidia], Gerät 0: ALC1200 Analog [ALC1200 Analog]
Untergeordnete Geräte: 1/1
Untergeordnetes Gerät '0: subdevice #0
Karte 0: NVidia [HDA NVidia], Gerät 1: ALC1200 Digital [ALC1200 Digital]
Untergeordnete Geräte: 1/1
Untergeordnetes Gerät '0: subdevice #0
Karte 0: NVidia [HDA NVidia], Gerät 3: NVIDIA HDMI [NVIDIA HDMI]
Untergeordnete Geräte: 0/1
Untergeordnetes Gerät '0: subdevice #0
markus@mediacenter:~/xbmc/XBMC$
new system in the house...
Reply
#9
some additional infos to ALC1200 from mainboard manual:

Quote:The onboard 8-channel High Definition Audio CODEC enables high-quality 192KHz / 24 bit audio output ...
new system in the house...
Reply
#10
pico Wrote:i really think that my mainboard support 48khz output...

My point being that it does support that, and probably more. HDMI usually is or always forced to 48khz. Most MP3's are in 44.1 hence the high pitch.

You need to change your asoundrc here from
pcm "hw:0,3"
to
pcm "plughw:0,3"
If you have problems please read this before posting

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

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#11
after changing it and rebooting, i got no sound everywhere....

do i have to change some setting in xbmc? both audio-devices are hdmi before...
new system in the house...
Reply
#12
Well I'm no master with .asoundrc (don't use em) and I told you first post how to set it up without .asoundrc in settings.

Topfs2 Wrote:Your Audio card does not support the samplerate, either use advancedsettings and resampleaudio to force output to 48khz but better is use the plug interface with alsa.

plughw:0,3 is normal for HDMI but depends on your hw.
the numbers can be found in aplay -l

Check aplay -l and alter settings -> System -> Audio Hardware. device.
If you have problems please read this before posting

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

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#13
Thumbs Up 
ahhh now i know what you mean...

1. updated my alsa to 1.0.20
2. get rid of my .asoundrc
3.
Quote:my settings in /system/audio-hardware in xbmc from top:

1. Audio output : digital
2. support AC3 : yes
3. support DTS : yes
4. audio output hardware : plughw:0,3
5. passthrough output device: hdmi
6. downmix multichannel audio to stereo : no

after that, the tone comes in the right pitch out of my boxes....

thanks alot.... only the problem with no dts and no dd sound are left Smile

but this in a different thread!
THIS PROBLEM IS SOLVED
new system in the house...
Reply
#14
Try this:

/home/xbmc/.xbmc/userdata/advancedsettings.xml

<advancedsettings>
<audio><resample>48000</resample></audio>
</advancedsettings>


/etc/asound.conf

pcm.!default {
type hw
card 0
device 3
}



And in XBMC:

1. Audio output : digital
2. support AC3 : yes
3. support DTS : yes
4. audio output hardware : default
5. passthrough output device: hdmi
6. downmix multichannel audio to stereo : no
XBMC 9.11 (SVN 28275) on minimal Ubuntu 9.04
on ZOTAC ION-A (Atom330 / 4GB / 250GB HDD / Atric Switch / Silverstone LC19 Case)
Reply
#15
You can have 44100Hz native frequenzy over HDMI ! Resampling to 48khz causes a lot of quality loss !!

It is just wrongly implemented int the Alsa source code.
You have to change 6 lines in the /usr/src/Alsa-1.0.20/alsa-driver-1.0.20/sound/pci/hda/patch_nvhdmi.c source file where you can add all possible frequencies and bitrates. I am in contact with Mr. Wei Ni, engineer for Nvidia to make the HDMI implementation better.

It looks we will have full uncompressed 8 channel HD audio up to 24 bits and 192khz over hdmi if this project is finished. And it is in good shape already.

Check out my thread where you can get the information how to apply the 44100 hz to the available formats for your hdmi device. Note that you need to change your system in a way you can't revert back (Need to update to the newest Alsa)

http://forum.xbmc.org/showthread.php?tid...light=lpcm

Regards,

Alan
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.
Reply

Logout Mark Read Team Forum Stats Members Help
[Linux] Tone too high0