Kodi Community Forum

Full Version: Sound Issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
OS X 10.10.1, iMac 11.3, Kodi 14.0 Git:2014-12-23-ad747d9-dirty

I'm having an issue with being able to play sound with 5.1 channels in Kodi 14.0. I am using USB Sound Blaster OMNI Surround 5.1. It took awhile to find the right settings in Frodo 12.3, but found in Kodi no matter what I try I only get 2 channels. If I set to 5.1 channels files will not play (like pause with slow motion frame advance) In Frodo 12.3 the key setting that changed it from 2 channels to 5.1 channels was -Multichannel LPCM capable receiver. No such setting exist is Kodi 14.0. On Mac Audio MIDI setup SB Omni Surround 5.1 output speaker configuration is set to 5.1 channel surround. (this changes to stereo or 5.1ch with the OMNI Surround 5.1 control panel setting). Also Kodi 14.0 will force this to stereo when I start to play a AC3 or DTS 5.1 channel Movie.

Kodi 14.0 Audio settings:
Output device: Default, SB Omni Surround 5.1
Number of channels: 2.0 ( anything else doesn't play)
Output configuration: Optimised, Best Match, Fixed (tried them all) N/C
Stereo upmix: N/C
Maintain original volume on downmix: N/C
Play GUI sounds: N/C
Enable passthrough (Tried Yes and No) N/C
Passthrough output device: Default, SB Omni Surround 5.1
Dolby Digital (AC3) capable receiver: No
DTS capable receiver: No


In Frodo 12.3 this was my Audio Output setting that works.
Audio Output: HDMI (odd for USB, but works. Analog selection mixed rear channels with front.)
Speaker Configuration: 2.0
Boost volume level on downmix: No
Output stereo to all speakers: No
-Dolby Digital (AC3) capable receiver: No
-DTS capable receiver: No
-Multichannel LPCM capable receiver: Yes
Audio output device: default
Play GUI sounds: N/C
lpcm will be activated automatically when channels are set > 2.0 - ignore frodo settings - those where a mess. Please post a debug log (wiki) so i can see whats going on.
log file:

http://pastebin.com/emNyQrbV

Thanks,

Woogetybop[/code]
wrong log file adding debug log

http://pastebin.com/2s81dy3i

Thanks for looking at this.

regards,

Woogetybop
Is this a hackintosh by any chance?
Well in general its really hard to follow that debug log. Could you try to generate a new one without doing so much stuff in there? Basically

1. set system->system->audio to 5.1 and disable passthrough of ac3 and dts and make sure debugging is enabled
2. Close kodi!
3. Start kodi - navigate to a dts file - play it - stop it - stop kodi
4. get me that minimal log.
Small log file. started Kodi, played DTS 5.1 audio test file. File played (no audio heard on 5.1 setting). audio file is 11s long. after 15s stopped playback and quit Kodi.

http://pastebin.com/download.php?i=agQMEv81
Forgot to answer you question regarding the hackintosh. Your observation of the log file is correct this is a hacintosh. Also regarding the Sound Blaster Omni 5.1 Surround USB device. As I've been reading about Macintosh and internal 5.1 channel decoding. Macs don't do this very well. I've only found VLC and Frodo 12.3 that 5.1 surround works correctly. Others have also mentioned Plex. I am going to return the Omni 5.1 to were I bought it and go to more problem free solution of hdmi to a receiver with built in decoding. Other blogs have said this works the best on a Mac. We can continue working on this only if helps Kodi and others until I return it at the end of the month or when we're done here. Ether way thanks for your help.

Best Regards,
Woogetybop
Well the enumeration and channel mapping looks correct for 5.1 pcm sound...

Code:
23:45:01 T:4481077248    INFO: CCoreAudioStream::HardwareStreamListener: Hardware physical format changed to [lpcm] Mixable Interleaved 6 Channel 24-bit Signed Integer LE (48000Hz)
23:45:01 T:4501532672   DEBUG: GetAEChannelMap Engine requests layout FL,FR,FC,LFE,SL,SR
23:45:01 T:4501532672   DEBUG: GetAEChannelMap trying to map to multichannel layout: [Left] [Right] [Center] [LFE] [Side Left] [Side Right]
23:45:01 T:4501532672   DEBUG: GetAEChannelMap mapped channels to layout FL,FR,FC,LFE,SL,SR
23:45:01 T:4501532672   DEBUG: Initialize: using buffer size: 49152 (0.042667 ms)
23:45:01 T:4501532672   DEBUG: CActiveAESink::OpenSink - DARWINOSX Initialized:
23:45:01 T:4501532672   DEBUG:   Output Device : Default
23:45:01 T:4501532672   DEBUG:   Sample Rate   : 48000
23:45:01 T:4501532672   DEBUG:   Sample Format : AE_FMT_FLOAT
23:45:01 T:4501532672   DEBUG:   Channel Count : 6
23:45:01 T:4501532672   DEBUG:   Channel Layout: FL,FR,FC,LFE,SL,SR
23:45:01 T:4501532672   DEBUG:   Frames        : 512
23:45:01 T:4501532672   DEBUG:   Frame Samples : 3072
23:45:01 T:4501532672   DEBUG:   Frame Size    : 24

The problem is that the coreaudio engine didn't start pulling audio packets from us

Code:
23:45:05 T:4501532672   ERROR: AddPackets engine didn't start in 4500 ms!

Nothing seen like that before tbh. Not sure if its worth to investigate (and not sure how to do so without having the hardware...)
same problem
You post is not helpfull
Ok you are all rigtht, sorry

My computer:

Core2duo 3ghz running 10.6.8 with Kodi 14.2 Git:2015-03-26-7cc53a9-dirty

debug log:

http://pastebin.com/A50jhTvL

note: only vlc work well

thanks
Well based on the log kodi doesn't do anything wrong. This suggests that those omni usb soundcards have something in their drivers which needs some special treatment (you can't compare to VLC - they use a higher level API then Kodi).

Without me having this audio device there is no fix i can think of (because i don't see anything wrong - yet the audio device refuses to start with error "Operation could not be completed" which doesn't help to guess the cause)
Memphiz, can I do some test to help?

very thanks
Nope - if you are not a developer who can debug the problem you can't help but send me the audio device for fixing it. But ATM i am not even open to that because i am moving cities in a month and have another move a month later.