Changeset 663
- Timestamp:
- 11/15/09 08:38:12 (2 years ago)
- Files:
-
- beatfish/trunk/src/beatfish.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
beatfish/trunk/src/beatfish.c
r662 r663 283 283 } 284 284 285 static Evas_Object * tempo_slider; 285 286 static Evas_Object * tempo_label; 286 287 … … 353 354 evas_object_show(ob); 354 355 355 bg = ob;356 tempo_slider = bg = ob; 356 357 357 358 ob = evas_object_rectangle_add (evas); … … 1005 1006 xdrstdio_create (&xdrs, fp, XDR_ENCODE); 1006 1007 1008 { 1009 double tempo; 1010 1011 tempo = remix_get_tempo (remix); 1012 1013 printf ("Saving tempo %g\n", tempo); 1014 xdr_double (&xdrs, &tempo); 1015 } 1016 1007 1017 printf ("Saving delay1_x %f, delay2_x %f\n", delay1_x, delay2_x); 1008 1018 xdr_float (&xdrs, &delay1_x); … … 1021 1031 1022 1032 fp = fopen (SAVE_FILE_PATH, "rb"); 1033 if (fp == NULL) return; 1034 1023 1035 xdrstdio_create (&xdrs, fp, XDR_DECODE); 1036 1037 { 1038 double tempo; 1039 float canvas_x; 1040 1041 xdr_double (&xdrs, &tempo); 1042 printf ("Loaded tempo %g\n", tempo); 1043 1044 canvas_x = ((tempo - 60)/180) * (WIDTH/2); 1045 tempo_set_x (tempo_slider, canvas_x); 1046 remix_set_tempo (remix, tempo); 1047 } 1024 1048 1025 1049 xdr_float (&xdrs, &delay1_x);
