Changeset 514 for trunk/platform/generic/wrappers.c
- Timestamp:
- 09/16/08 00:58:42 (5 years ago)
- File:
-
- 1 edited
-
trunk/platform/generic/wrappers.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/platform/generic/wrappers.c
r479 r514 596 596 #endif 597 597 598 #if CAM_CAN_MUTE_MICROPHONE599 598 int mute_on_zoom(int x){ 600 599 static int old_busy=0; 601 600 int busy=zoom_busy||focus_busy; 602 if (conf.mute_on_zoom && (old_busy!=busy)) { 603 if (busy) _TurnOffMic(); else _TurnOnMic(); 601 if (old_busy!=busy) { 602 if (busy) { 603 #if CAM_CAN_MUTE_MICROPHONE 604 if (conf.mute_on_zoom) _TurnOffMic(); 605 #endif 606 } 607 else { 608 #if CAM_CAN_MUTE_MICROPHONE 609 if (conf.mute_on_zoom) _TurnOnMic(); 610 #endif 611 #if CAM_EV_IN_VIDEO 612 if (get_ev_video_avail()) set_ev_video_avail(0); 613 #endif 614 } 604 615 old_busy=busy; 605 616 } 606 617 return x; // preserve R0 if called from assembler 607 618 } 608 #endif609 610 619 611 620
Note: See TracChangeset
for help on using the changeset viewer.