Author Topic: Q: Why "smooth fade when stopping" is not effective in WASAPI?  (Read 11474 times)

butty

  • Sr. Member
  • ****
  • Posts: 435
In WASAPI mode, the "smooth fade when stopping" feature is not effective - the sound is not faded on stop.
Is it caused by some limitations of WASAPI? Please tell me the reason.

Thanks in advance.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34982
the handling is no different to ASIO or DirectSound. Its smooth fades the song down to 0 volume over 1/3 of a second.
I agree that for some positions in a song it might be too quick and harsh. As an experiment i can bump of the time to 2/3 of a second and see if thats too slow for people.
I have done that for the next v2.3 update

butty

  • Sr. Member
  • ****
  • Posts: 435
Thanks for the reply.

the handling is no different to ASIO or DirectSound.

Hmm, in my environment, it seems that ASIO is different from DirectSound and WASAPI. In ASIO mode, I can hear the smooth fade, however, in DirectSound and WASAPI mode, I can't...

ma_t14

  • Hero Member
  • *****
  • Posts: 2493
Steven this might worth giving another look into. A similarly strange fade behaviour was reported in another thread as well, not sure if the two are related:

http://getmusicbee.com/forum/index.php?topic=9386.0

Butty I would be interested to hear whether you experience a similar problem as "fungud" in that thread

butty

  • Sr. Member
  • ****
  • Posts: 435
ma_t14, I don't think fungud's problem is the same kind as mine. My problem occurs in a very short period (< 1 sec) and the sound doesn't get smaller, on the other hand, his problem occurs in very long period and the sound gets smaller.

ma_t14

  • Hero Member
  • *****
  • Posts: 2493
ma_t14, I don't think fungud's problem is the same kind as mine. My problem occurs in a very short period (< 1 sec) and the sound doesn't get smaller, on the other hand, his problem occurs in very long period and the sound gets smaller.

Sorry, I might have not explained well. What I meant is, if you follow the steps fungud is doing are you experiencing the same behaviour? I would like to see if both problems are somehow related to using WASAPI.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34982
i dont see how the two are related (and not even convinced fungud's issue was a bug).
As i said i will make a version available that extends the fade down period to see if it makes a diference.

butty

  • Sr. Member
  • ****
  • Posts: 435
ma_t14,
I have followed fungud's steps, and MB just worked well (started fading in 9 minutes, stopped playing in 19 minutes, no quiet until stop).

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34982
@butty, as an experiement i have changed the fade period to 1.5 seconds so it should be obvious whether it is fading or not. I am not planning to make it such a long fade period going forward.
The is v2.2 of musicbee.exe

https://www.mediafire.com/?34te2uke7ztgm6k

butty

  • Sr. Member
  • ****
  • Posts: 435
Steven,
I've tested with the test version. The result is the same (WASAPI: no fade, ASIO: long fade).

butty

  • Sr. Member
  • ****
  • Posts: 435
In addition,
changed the sound device from ESI MAYA44 XTe's optical output to mother board's built-in optical output, however, got the same result.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34982
perhaps post a screenshot of your "Player" preferences, although i am struggling to see how anything would make any difference

butty

  • Sr. Member
  • ****
  • Posts: 435
Steven,
I saved the screenshot to http://piulento.net/tmp/MB-20131123.png (Japanese text before "S/PDIF" reads "Digital Audio")

In addition, I noticed that the sound fades in when start playing.

Regards.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34982
nothing unusual and still not something i can reproduce. Looking at the code the only possibility i see is it (intentionally) doesnt do the fading for files played via external plugins such as sub-sonic.
I will have to leave this unsolved.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34982
by the way, using the test version does it stop immediately or after 1.5 seconds?