Kodi Community Forum
OS X [SVN] AudioEngine, no gappless playback of music - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Mac OS X (https://forum.kodi.tv/forumdisplay.php?fid=56)
+---- Thread: OS X [SVN] AudioEngine, no gappless playback of music (/showthread.php?tid=139093)

Pages: 1 2


[SVN] AudioEngine, no gappless playback of music - idioteque - 2012-08-26

Bug has been here since Eden,and since new Audio Engine,never took the time to report it Smile

Build:xbmc-20120824-2a4e36a-master-i386.dmg
platform mac mini 2009, 4GB RAM Nvidia 9500M Mountain Lion 10.8.0
VDA on
Sync to screen on 24Hz
Panasonic 42" plasma
skin AEON GIT
Audio out: optical
Connected through DAC to receiver
OSX set in MIDI setup to 2 channel
XBMC setup to 2 chanel, nothing else supported, selected

No normalization
Gappeless set to 5 seconds
same album set to none

both gapless and none-gapless exhibit none seamless playback behavior

When playing any music file, the change from one music file (mp3, alac) to another is very unpleasant.

play mp3/alac
8-10 seconds before and of file there is a very brief click/stop of music playback
on switch to next song, both are head to stop/start
4-5 seconds after second file has been playing, click/stop of music playback

log:
https://dl.dropbox.com/u/1451715/xbmc.log

Youtub:
http://www.youtube.com/watch?v=dhwpc0qWvkU

5:38 is the first hickup
0:04-5 is the second hickup

09:59:04 T:2886834728 DEBUG: CFileCache::Open - opening <4/10875.mp3> using cache
09:59:04 T:2886834728 DEBUG: DllLibApeTag: Using libapetag library
09:59:04 T:2956513280 NOTICE: Thread CFileCache start, auto delete: false
09:59:04 T:2886834728 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/libid3tag-x86-osx.so)
09:59:04 T:2886834728 DEBUG: Loading: /Applications/XBMC.app/Contents/Resources/XBMC/system/libid3tag-x86-osx.so
09:59:04 T:2886834728 DEBUG: DllLibApeTag: Using libapetag library
09:59:04 T:2886834728 INFO: AudioDecoder: File is queued
09:59:04 T:2886834728 INFO: CCoreAudioAE::MakeStream - AE_FMT_S32NE, 44100, 0, FL,FR
09:59:04 T:2886834728 DEBUG: CCoreAudioUnit::RemoveRenderProc: Remove RenderProc 0xa2d070 for unit 0x8012c172
09:59:05 T:2886834728 DEBUG: CCoreAudioUnit::RemoveRenderProc: Remove RenderProc 0xa2d070 for unit 0x8012c169
09:59:05 T:2886834728 DEBUG: CCoreAudioDevice::Close: Closed device 0x0028
09:59:05 T:2886834728 INFO: CCoreAudioAEHALOSX:Big Grineinitialize: Audio device has been closed.
09:59:05 T:2886834728 INFO: CCoreAudioAE:Big Grineinitialize: Audio device has been closed.
09:59:05 T:2886834728 DEBUG: CCoreAudioHardware::FindAudioDevice: Searching for device - Built-in Output.
09:59:05 T:2886834728 DEBUG: CCoreAudioDevice::Open: Opened device 0x002d
09:59:05 T:2886834728 DEBUG: CCoreAudioDevice::GetTotalOutputChannels: Found 0 channels in 0 buffers
09:59:05 T:2886834728 DEBUG: CCoreAudioHardware::FindAudioDevice: Device[0x002d] - Name: 'Built-in Input', Total Ouput Channels: 0.
09:59:05 T:2886834728 DEBUG: CCoreAudioDevice::Close: Closed device 0x002d
09:59:05 T:2886834728 DEBUG: CCoreAudioDevice::Open: Opened device 0x0028
09:59:05 T:2886834728 DEBUG: CCoreAudioDevice::GetTotalOutputChannels: Found 2 channels in 1 buffers
09:59:05 T:2886834728 DEBUG: CCoreAudioHardware::FindAudioDevice: Device[0x0028] - Name: 'Built-in Output', Total Ouput Channels: 2.
09:59:05 T:2886834728 DEBUG: CCoreAudioDevice::Close: Closed device 0x0028
09:59:05 T:2886834728 DEBUG: CCoreAudioDevice::Open: Opened device 0x0028
09:59:05 T:2886834728 ERROR: CCoreAudioDevice::SupportsMixing: Unable to get propertyinfo mixing support. Error = 'who?'
09:59:05 T:2886834728 ERROR: CCoreAudioDevice::SupportsMixing: Device mixing support : 'No'.
09:59:05 T:2886834728 DEBUG: CCoreAudioUnit::SetCurrentDevice: Current device 0x00000028
09:59:05 T:2886834728 INFO: CCoreAudioGraph::CreateMixMap: Source Stream Layout: [Left] [Right]
09:59:05 T:2886834728 INFO: CCoreAudioGraph::CreateMixMap: User-Configured Speaker Layout: [Left] [Right]
09:59:05 T:2886834728 INFO: CCoreAudioGraph::CreateMixMap: Output Device Layout: [Unknown] [Unknown]
09:59:05 T:2886834728 DEBUG: CCoreAudioMixMap::CreateMap: Unable to locate pre-defined mixing matrix
09:59:05 T:2886834728 DEBUG: CCoreAudioGraph::Open: Loading matrix mixer configuration
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: [2][0][1.0]
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: [2][1][0.0]
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: [3][0][0.0]
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: [3][1][1.0]
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: Mixer Output Format: 2 channels, 44.1 kHz, 32 bits, 4 bytes per frame
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: Input Stream Format [lpcm] Mixable Non-Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: Output Stream Format [lpcm] Mixable Non-Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: Input Stream Format [lpcm] Mixable Non-Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: Output Stream Format [lpcm] Mixable Non-Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: Input Stream Format [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
09:59:05 T:2886834728 INFO: CCoreAudioGraph::Open: Output Stream Format [lpcm] Mixable Non-Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
09:59:05 T:2886834728 DEBUG: CCoreAudioUnit::SetRenderProc: Set RenderProc 0xa2d070 for unit 0x8012c177
09:59:05 T:2886834728 INFO: CCoreAudioAE::Initialize:
09:59:05 T:2886834728 INFO: Output Device : Built-in Output
09:59:05 T:2886834728 INFO: Sample Rate : 44100
09:59:05 T:2886834728 INFO: Sample Format : AE_FMT_FLOAT
09:59:05 T:2886834728 INFO: Channel Count : 2
09:59:05 T:2886834728 INFO: Channel Layout: FL,FR
09:59:05 T:2886834728 INFO: Frame Size : 8
09:59:05 T:2886834728 INFO: Volume Level : 0.099999
09:59:05 T:2886834728 INFO: Passthrough : 0


[SVN] AudioEngine, no gappless playback of music - Memphiz - 2012-08-26

We are aware. No idea for a solution - because coreaudio uses a data pull model and audioengine uses a data push model. We can't predict when a sample really gets played and thats where you hear the gap atm.


RE: [SVN] AudioEngine, no gappless playback of music - idioteque - 2012-08-26

ok thanks.

Perhaps an option to disable gapless playback on OSX with new audio engine until it works as expected to avoid further bug reports ?




RE: [SVN] AudioEngine, no gappless playback of music - idioteque - 2012-08-26

This because when I turn gapless off I still get the clicks


RE: [SVN] AudioEngine, no gappless playback of music - tronix - 2012-09-11

I get the short pauses/clicks as well and I've to agree that it degrades the overall experience when listening to music. I would also appreciate some way to disable gapless playback.


RE: [SVN] AudioEngine, no gappless playback of music - User 34959 - 2012-09-11

There is a way, downgrade back to Eden.

But i have to say that Memphiz's comments about CoreAudio are not very promising.. Hopefully all these AE issues are sorted for us OSX users at later time, at the moment there seems to be only downsides in AE for OSX. But i'm not complaining, it is what it is at the moment and nobody is forcing us to use nightlies.


RE: [SVN] AudioEngine, no gappless playback of music - idioteque - 2012-09-12

That is what I did. Downgrade to Eden.


RE: [SVN] AudioEngine, no gappless playback of music - DDDamian - 2012-09-13

Looking into it - aware of the issue and it's a high priority to fix before Frodo final.


RE: [SVN] AudioEngine, no gappless playback of music - tronix - 2012-09-13

Thank you very much DDDamian! Highly appreciated Smile


RE: [SVN] AudioEngine, no gappless playback of music - Memphiz - 2012-09-14

DDDamian this is a issue only on osx afaik. You see it on other platforms too?


RE: [SVN] AudioEngine, no gappless playback of music - fabsil - 2012-09-14

I have the same problem: eden + ubuntu 12.04



RE: [SVN] AudioEngine, no gappless playback of music - DDDamian - 2012-09-14

@Memphiz - pretty sure the issue is in PAPlayer - some stream locking going on there during the 5sec bump window. Can be somewhat CPU-dependent on severity.

@fabsil - we're talking about an issue appearing since the AE merge back in May, post-Eden. Are you using Eden or a pre-Frodo build since May containing AE (AudioEngine)?


RE: [SVN] AudioEngine, no gappless playback of music - Steve-o - 2012-11-22

Is the bug still present? Playback sometimes stutters between tracks with XBMC beta1 on Ubuntu 12.10 here.


RE: [SVN] AudioEngine, no gappless playback of music - Memphiz - 2012-11-22

yes it is...


RE: [SVN] AudioEngine, no gappless playback of music - biGdada - 2012-12-17

(2012-09-14, 16:52)Memphiz Wrote: DDDamian this is a issue only on osx afaik. You see it on other platforms too?
happens on atv2 too, as mentioned here