ruby-****@sourc*****
ruby-****@sourc*****
2004年 3月 2日 (火) 05:38:52 JST
------------------------- REMOTE_ADDR = 217.117.55.140 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/?Gst%3A%3AClock ------------------------- = class Gst::Clock Abstract class for global clocks. + == Object Hierarchy + * Object + * GLib::Instantiatable + * GLib::Object + * Gst::Object + * Gst::Clock == Instance Methods - --- == aClockObject - Checks if two Gst::Clock objects are synchronized on the same time. + --- ==(clock) + This method returns true if two Gst::Clock objects are synchronized on the same time, false otherwise. + * clock: a Gst::Clock object. + * Returns: true if two Gst::Clock objects are synchronized on the same time, false otherwise. - --- active? - Checks if the clock is active. + --- active=(state) + Activates or deactivates the clock based on the active parameter. + As soon as the clock is activated, the time will start ticking. + * state: a boolean value. + * Returns: the given parameter 'state'. - --- can_do_periodic_async? - Checks if the Gst::Element::FLAG_CAN_DO_PERIODIC_ASYNC flag is set on the - object. + --- active? -> aBoolean + This method returns true if the clock is active, false otherwise. + * Returns: true if the clock is active, false otherwise. - --- can_do_periodic_sync? - Checks if the Gst::Element::FLAG_CAN_DO_PERIODIC_SYNC flag is set on the - object. - - --- can_do_single_async? - Checks if the Gst::Element::FLAG_CAN_DO_SINGLE_ASYNC flag is set on the - object. - - --- can_do_single_sync? - Checks if the Gst::Element::FLAG_CAN_DO_SINGLE_SYNC flag is set on the - object. - - --- can_set_resolution? - Checks if the Gst::Element::FLAG_CAN_SET_RESOLUTION flag is set on the - object. - - --- can_set_speed? - Checks if the Gst::Element::FLAG_CAN_SET_SPEED flag is set on the - object. - - --- handle_discont(aBignum) + --- handle_discont(time) Notifies the clock of a discontinuity in time (nanoseconds). - Returns true if the clock was updated, otherwise false. It is possible that the clock was not updated by this call because only the first discontinuitity in the pipeline is honoured. + * time: time in nanoseconds. + * Returns: true if the clock was updated, otherwise false. - --- reset! + --- reset! Reset the clock to time 0. + * Returns: self. - --- resolution - Gets the accuracy of the clock, as a Bignum. + --- resolution -> aBignum + This method returns the accuracy of the clock. + * Returns: the accuracy of the clock. - --- set_active(aBoolean) + --- resolution=(resolution) + Sets the accuracy of the clock. + * resolution: the accurary of the clock. + * Returns: the given parameter 'resolution'. + + --- set_active(state) Activates or deactivates the clock based on the active parameter. As soon as the clock is activated, the time will start ticking. + * state: a boolean value. + * Returns: self. - --- set_resolution(resolution) - Sets the accuracy of the clock, as a Bignum. + --- set_resolution(resolution) + Sets the accuracy of the clock. + * resolution: the accurary of the clock. + * Returns: self. - --- set_speed(speed) - Sets the speed of the clock, as a Fixnum or a Float. - 1.0 is default speed. + --- set_speed(speed) + Sets the speed of the clock. + 1.0 is the default speed. + * speed: the speed of the clock. + * Returns: self. - --- speed - Gets the speed of the clock. - The returned value can be either a Fixnum or a Float. + --- speed + This method returns the speed of the clock. + * Returns: the speed of the clock. - --- time - Gets the time of the clock (in nanoseconds), as a Bignum. + --- speed=(speed) + Sets the speed of the clock. + 1.0 is the default speed. + * speed: the speed of the clock. + * Returns: the given parameter 'speed'. + --- time + This method returns the time of the clock (in nanoseconds). + * Returns: the time of the clock (in nanoseconds). == Constants - --- EARLY - The operation was scheduled too late. + === GstObjectFlags + --- DESTROYED + --- FLOATING + --- OBJECT_FLAG_LAST + === GstClockReturn + --- EARLY --- ERROR - An error occured. + --- STOPPED + --- TIMEOUT + --- UNSUPPORTED + === GstClockFlags --- FLAG_CAN_DO_PERIODIC_ASYNC - This clock can do async periodic timeout callbacks. - --- FLAG_CAN_DO_PERIODIC_SYNC - This clock can do sync periodic timeout requests. - - --- FLAG_CAN_DO_SET_RESOLUTION - The resolution of this clock can be changed. - - --- FLAG_CAN_DO_SET_SPEED - The speed of this clock can be changed. - --- FLAG_CAN_DO_SINGLE_ASYNC - This clock can do a single async timeout request. - --- FLAG_CAN_DO_SINGLE_SYNC - This clock can do a single sync timeout request. + --- FLAG_CAN_SET_RESOLUTION + --- FLAG_CAN_SET_SPEED - --- STOPPED - The clock is stopped. - - --- TIMEOUT - The operation timed out. - - --- UNSUPPORTED - Operation is not supported. - - == Properties --- max-diff: Integer (Read/Write) The maximum amount of time to wait in nanoseconds. --- stats: true or false (Read/Write) Enable clock stats. + == See Also + ((<Gst::SystemClock>)), ((<Gst>)). - ((<lrz>))