Mercurial > mplayer.hg
comparison gui/win32/preferences.c @ 36822:95e3f435bc57
Enable setting full audio delay value range.
The option allows a range of -100..100.
Additionally, set the step increment (X11/GTK)
resp. line size (Win32) to 0.1.
author | ib |
---|---|
date | Mon, 24 Feb 2014 10:31:09 +0000 |
parents | 7958d1c69edc |
children | edfa61ced4ad |
comparison
equal
deleted
inserted
replaced
36821:7958d1c69edc | 36822:95e3f435bc57 |
---|---|
44 { | 44 { |
45 HWND btn, label, edit1, edit2, updown1, updown2, track1, track2; | 45 HWND btn, label, edit1, edit2, updown1, updown2, track1, track2; |
46 static HWND vo_driver, ao_driver, prio; | 46 static HWND vo_driver, ao_driver, prio; |
47 int i = 0, j = 0; | 47 int i = 0, j = 0; |
48 char procprio[11]; | 48 char procprio[11]; |
49 float x = 10.0, y = 100.0, stereopos, delaypos; | 49 float x = 10.0, y = 10.0, stereopos, delaypos; |
50 stereopos = gtkAOExtraStereoMul * x; | 50 stereopos = gtkAOExtraStereoMul * x; |
51 delaypos = audio_delay * y; | 51 delaypos = audio_delay * y; |
52 | 52 |
53 switch (iMsg) | 53 switch (iMsg) |
54 { | 54 { |
284 165, 182, 245, 35, hwnd, | 284 165, 182, 245, 35, hwnd, |
285 (HMENU) ID_TRACKBAR2, | 285 (HMENU) ID_TRACKBAR2, |
286 ((LPCREATESTRUCT) lParam) -> hInstance, | 286 ((LPCREATESTRUCT) lParam) -> hInstance, |
287 NULL); | 287 NULL); |
288 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETRANGE, 1, MAKELONG(-1000, 1000)); | 288 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETRANGE, 1, MAKELONG(-1000, 1000)); |
289 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETLINESIZE, 0, (LPARAM) 1); | |
289 | 290 |
290 /* cache */ | 291 /* cache */ |
291 edit1 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "cache", | 292 edit1 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "cache", |
292 WS_CHILD | WS_VISIBLE | WS_DISABLED | | 293 WS_CHILD | WS_VISIBLE | WS_DISABLED | |
293 ES_LEFT | ES_AUTOHSCROLL, | 294 ES_LEFT | ES_AUTOHSCROLL, |
579 gtkAOExtraStereoMul = 10.0; | 580 gtkAOExtraStereoMul = 10.0; |
580 } | 581 } |
581 gtkAOExtraStereoMul = SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_GETPOS, 0, 0) / 10.0; | 582 gtkAOExtraStereoMul = SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_GETPOS, 0, 0) / 10.0; |
582 | 583 |
583 /* audio delay */ | 584 /* audio delay */ |
584 audio_delay = SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_GETPOS, 0, 0) / 100.0; | 585 audio_delay = SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_GETPOS, 0, 0) / 10.0; |
585 | 586 |
586 /* cache */ | 587 /* cache */ |
587 if(SendDlgItemMessage(hwnd, ID_CACHE, BM_GETCHECK, 0, 0) == BST_CHECKED) | 588 if(SendDlgItemMessage(hwnd, ID_CACHE, BM_GETCHECK, 0, 0) == BST_CHECKED) |
588 gtkCacheOn = TRUE; | 589 gtkCacheOn = TRUE; |
589 else gtkCacheOn = FALSE; | 590 else gtkCacheOn = FALSE; |