|
superclass: gst-object% |
method
(send a-bus have-pending?) → boolean?
method
(send a-bus pop-filtered types) → (or/c message? #f)
types : message-type/c
method
timeout : clock-time?
method
(send a-bus timed-pop-filtered timeout types) → (or/c message? #f) timeout : clock-time? types : message-type/c
If timeout is 0, this method behaves like pop-filtered. If timeout is clock-time-none, this method will block until a matching message was posted on the bus. Returns #f if no matching message was found on the bus after the timeout expired.
method
(send a-bus disable-sync-message-emission!) → void?
method
(send a-bus enable-sync-message-emission!) → void?
method
events : message-type/c timeout : clock-time?
GStreamer calls this function “pure evil”. Prefer timed-pop-filtered and make-bus-channel.
procedure
(make-bus-channel bus [ filter #:timeout timeout]) → (evt/c (or/c message? false/c (evt/c exact-integer?))) bus : (is-a?/c bus%) filter : message-type/c = '(any) timeout : clock-time? = clock-time-none
3.4.1 Messages
A message is a small structure representing signals emitted from a pipeline and passed to the application using the bus. Messages have a message-type useful for taking different actions depending on the type.
procedure
(message-type message) → message-type/c
message : message?
procedure
(message-seqnum message) → exact-integer?
message : message?
Messages have ever-incrementing sequence numbers. Sequence numbers are typically used to indicate that a message corresponds to some other set of messages or events.
procedure
(message-src message) → (is-a?/c gst-object%)
message : message?
procedure
(message-of-type? message type ...+) → (or/c message-type/c #f)
message : message? type : symbol?
procedure
(eos-message? v) → boolean?
v : any/c
procedure
(error-message? v) → boolean?
v : any/c
procedure
(fatal-message? v) → boolean?
v : any/c
= (or (eos-message? v) (error-message? v))
value