[AudioEngine] Support for AE on Windows platform

  Thread Rating:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sialivi Online
Posting Freak
Posts: 940
Joined: Dec 2008
Reputation: 7
Location: Sweden
Post: #211
I'm going to have to go back to Alpha3 as well.

In Alpha4 the audio works for a few seconds but is crackling a lot, and then XBMC becomes unresponsive and the audio is stuck looping.

Here's the log, https://dl.dropbox.com/u/41720073/xbmc.log
(This post was last modified: 2012-08-15 01:44 by sialivi.)
find quote
DDDamian Offline
Team-XBMC Developer
Posts: 3,023
Joined: Sep 2011
Reputation: 252
Location: Canada
Post: #212
(2012-08-13 09:32)ace20022 Wrote:  @davilla

As you suggested, I had a look at the WASAPI. It states that the latency retrieved by GetStreamLatency(...) is expressed in 100-nanosecond units.(GetStreamLatency).

In the current code there is comment that GetCacheTotal() returns a duration in seconds, the conversion is done by
Code:
/** returns buffer duration in seconds */
  return hnsLatency / 10.0;

In my opinion the correct conversion is
Code:
/** returns buffer duration in seconds */
/** hnsLatency is given in 100 ns steps, conversion to seconds:  div by  10000000*/
  return hnsLatency / 10000000.0;

I successfully played two flac files, but had no time to test more.

EDIT: In the meantime I had. The access violation still persists. Now it happens within minutes rather than seconds. However, the above is valid, I think.

ace

@ace - you are mostly correct - the return value is in 100ns units, and the conversion to seconds does require that division. My dev branch includes that fix and one more: the result should be multiplied by 2x as there are actually two buffers of that duration which are filled prior to playback actually starting - this is contrary to Microsofts' descriptions on MSDN, but I have verified it via a somewhat complex tracking of the actual hardware buffer pointers with other development code. Further comments & details on GitHub in the PR mentioned above.

System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
find quote
solidsatras Offline
Senior Member
Posts: 289
Joined: Mar 2010
Reputation: 10
Post: #213
Welcome back DDDamian Big Grin
find quote
liquidskin76 Offline
Skilled Skinner
Posts: 1,287
Joined: Aug 2009
Reputation: 16
Location: UK
Post: #214
DDDamian... great to see you back in rotation! Hope you had a nice break. Wink

Cheers

Welo... a skin for XBMC

HTPC: Streacom FC1 Evo Case | Asus P8H77-I ITX | Intel Core i3 3220T | Kingston HyperX SSD | Kingston DDR3 RAM
Home AV: Sony KDL-40HX723 | Sky+HD | Sony BDP-S480 BD Player | Sony STR-DH820 AV Receiver | Sony Speaker System | Sony PS3 Slim | Logitech Harmony Touch
find quote
ace20022 Offline
Senior Member
Posts: 102
Joined: Aug 2012
Reputation: 4
Location: Germany
Post: #215
Hi DDDamian,

I will post a reply in the dev thread, since I moved to it from post #624 on.

ace
find quote
bigbwb Offline
Junior Member
Posts: 26
Joined: Jun 2012
Reputation: 0
Post: #216
Hey folks,
Its been quite a while since i have attmpted to upgrade beta versions for AE support (I need the new codecs to play back). My current version is a June build (6/6/12) or so and around then I tried several other versions with little success. Can you guys point me to a stable build? I honestly only stream mkv and iso blu ray files through xbmc and nothing else...very simple userSmile

Thanks!
(This post was last modified: 2012-08-15 23:54 by bigbwb.)
find quote
drpizznock Offline
Member
Posts: 68
Joined: Jan 2012
Reputation: 0
Post: #217
(2012-08-15 23:49)bigbwb Wrote:  Hey folks,
Its been quite a while since i have attmpted to upgrade beta versions for AE support (I need the new codecs to play back). My current version is a June build (6/6/12) or so and around then I tried several other versions with little success. Can you guys point me to a stable build? I honestly only stream mkv and iso blu ray files through xbmc and nothing else...very simple userSmile

Thanks!

Frodo Alpha 3 - http://mirrors.xbmc.org/snapshots/win32/...alpha3.exe
find quote
bigbwb Offline
Junior Member
Posts: 26
Joined: Jun 2012
Reputation: 0
Post: #218
[/quote]

Frodo Alpha 3 - http://mirrors.xbmc.org/snapshots/win32/...alpha3.exe
[/quote]

So this link is to a regular non beta release? Sorry I am fairly new to xbmc. All I had found was the AE nightly builds prior, and these are the ones that gave me trouble.

Thanks.
find quote
thrak76 Offline
Moderator
Posts: 1,102
Joined: Mar 2011
Reputation: 21
Location: Lake Michigan Shoreline
Post: #219
The link is a "snapshot".

Taken from the wiki...

"Monthly builds are semi-stable nightly snapshots of pre-release builds.
XBMC developers have a merge cycle every month for new features and major changes. For one week they add new features, then for three weeks they fix things. The monthly is then taken from a nightly just before they start adding features again."
find quote
bigbwb Offline
Junior Member
Posts: 26
Joined: Jun 2012
Reputation: 0
Post: #220
Thanks^^^^
I'll give it a try!
find quote
Post Reply