Fade in-out after pause

Use this category to discuss anything related to the development of Guayadeque.
lauri
Posts: 7
Joined: Wed Oct 27, 2010 11:41 pm

Fade in-out after pause

Post by lauri »

I have set all crossfader attributes to 0. When unpausing a song a fade in, fade out cycle is made. It takes about ~0,5 sec.
Pressing the button with mouse or using ':ExecCommand dbus-send --print-reply --type=method_call --dest=org.mpris.guayadeque /Player org.freedesktop.MediaPlayer.Pause' makes no difference.
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

Fade in-out after pause

Post by anonbeat »

what version are you using?
I cant reproduce what you said here using latest 0.2.8 svn revision 1342

Thanks for your help
lauri
Posts: 7
Joined: Wed Oct 27, 2010 11:41 pm

Fade in-out after pause

Post by lauri »

Yes, problem still exists in rev 1342. Output from console:
pausing:

10:57:07: OnMediaPosition... 73123 - 331311 1289822222 0
10:57:07: guMediaCtrl::GetState 2
10:57:07: ***************************************************************************** guMediaCtrl::Pause
10:57:07: CurrentPlayBin: 1289822222
10:57:07: * * * * * * * * * * current stream list * * * * * * * * * *
10:57:07: [1289822222] 'playing'
10:57:07: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10:57:07: guFaderPlayBin::StartFade (1289822222) 1,00, 0,00, 200
10:57:07: guTimeLine::ValueChanged to 0,00
10:57:07: CurrentPlayBin: 1289822222
10:57:07: * * * * * * * * * * current stream list * * * * * * * * * *
10:57:07: [1289822222] 'fading->paused'
10:57:07: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10:57:07: Got Application Message guayadeque-fade-out-done
10:57:07: guMediaCtrl::FadeInStart
10:57:07: CurrentPlayBin: 1289822222
10:57:07: * * * * * * * * * * current stream list * * * * * * * * * *
10:57:07: [1289822222] 'fading->paused'
10:57:07: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10:57:07: guMediaCtrl:FadeOutDone
10:57:07: guFaderPlayBin::Pause (1289822222)
10:57:07: OnMediaState: 3 1289822222 0
10:57:07: guMediaCtrl::GetState 3
10:57:07: StatusChanged( 1, 0, 0, 0 )
10:57:08: OnMediaPosition... 74100 - 331311 1289822222 0


Unpausing:


10:58:32: guMediaCtrl::GetState 3
10:58:32: wxMediaCtrl::Play
10:58:32: CurrentPlayBin: 1289822222
10:58:32: * * * * * * * * * * current stream list * * * * * * * * * *
10:58:32: [1289822222] 'paused'
10:58:32: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10:58:32: CurrentFaderPlayBin State 3
10:58:32: guFaderPlayBin::StartFade (1289822222) 0,00, 1,00, 200
10:58:32: guTimeLine::ValueChanged to 0,00
10:58:32: guFaderPlayBin::Play (1289822222)
10:58:32: OnMediaState: 4 1289822222 0
10:58:32: guMediaCtrl::GetState 5
10:58:32: StatusChanged( 0, 0, 0, 0 )
10:58:32: OnMediaPosition... 73975 - 331311 1289822222 0
10:58:33: stream fully faded in (at 1,000000) -> PLAYING state
10:58:33: OnMediaPosition... 74167 - 331311 1289822222 0
10:58:34: OnMediaPosition... 75169 - 331311 1289822222 0

I tried setting 'Out length' 1.0 and 'In length' 1.0. A fast fadein-fadeout is made before needed fadein.
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

Fade in-out after pause

Post by anonbeat »

I dont know why it takes for you about a half to pause as all in the logs looks fine.
Here in my test machine It stops almost inmediatelly.

When crossfading is disabled the pause and unpause is done in 200msecs which is perceived as its inmediate.

Thanks for your help
lauri
Posts: 7
Joined: Wed Oct 27, 2010 11:41 pm

Fade in-out after pause

Post by lauri »

I made a small 7 sec demo. It is not an actual recording, but it's close.
You can hear pausing at 4th sec and unpausing at 5th sec.
http://dl.dropbox.com/u/14712216/fasde_in_demo.mp3
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

Fade in-out after pause

Post by anonbeat »

I have listened to it and for what I can hear its normal. As I told you when xfade is disabled the pause and unpause is done in 200msecs and this is what you can hear in your sample demo.

Thanks for your help
lauri
Posts: 7
Joined: Wed Oct 27, 2010 11:41 pm

Fade in-out after pause

Post by lauri »

Just to make sure I understand it right. Link is a picture from the same demo.
http://dl.dropbox.com/u/14712216/wave.png
I press 'Pause' at the green line and 'Unpause' at the red line. After unpause You can see fadein, fadeout followed by 'unwanted silence'. If this is 'by design' then it's a really strange one.
Still a great program. Keep up the good work.
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

Fade in-out after pause

Post by anonbeat »

Ahh that graphic explain the problem. I thought you was telling that it was too long.

This is obvisously not wanted effect and havent seen it before as I always use guayadeque with crossfader enabled.

I will try to fix it.

Thanks for your help
lauri
Posts: 7
Joined: Wed Oct 27, 2010 11:41 pm

Fade in-out after pause

Post by lauri »

This problem appears in my main machine:
Linux 2.6.35-ARCH #1 SMP PREEMPT Wed Sep 29 08:45:18 CEST 2010 x86_64 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux

as well as in an Ubuntu machine
Linux 2.6.35-23-generic #37-Ubuntu SMP Fri Nov 5 19:17:11 UTC 2010 i686 GNU/Linux)
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

Fade in-out after pause

Post by anonbeat »

Are you using the latest svn revisions ?

Thanks for your help
Locked