Gjsify LogoGjsify Logo

Index

Variables

ATTR_APPLICATION_ICON: string

Binary icon data in PNG format for the application this sound event is triggered by.

ATTR_APPLICATION_ICON_NAME: string

An icon name for the application this sound event is triggered by, as defined in the XDG icon naming specification.

ATTR_APPLICATION_ID: string

An identifier for the program this sound event was triggered by. (e.g. "org.gnu.emacs").

This attribute will automatically be added to the #GSoundContext with the #GApplication:application-id if you are using #GApplication, so you normally do not need to supply this yourself.

ATTR_APPLICATION_LANGUAGE: string

The locale string the application that is triggering this sound event is running in. A POSIX locale string such as de_DEeuro.

ATTR_APPLICATION_NAME: string

The name of the application this sound event was triggered by as human readable string. (e.g. "GNU Emacs") Localized if possible and applicable.

This attribute will automatically be added to the #GSoundContext if it has previously been set with g_set_application_name(), so you normally do not need to supply this yourself.

ATTR_APPLICATION_PROCESS_BINARY: string

The path to the process binary of the process that is triggering this sound event.

ATTR_APPLICATION_PROCESS_HOST: string

The host name of the host the process that is triggering this sound event runs on.

ATTR_APPLICATION_PROCESS_ID: string

The unix PID of the process that is triggering this sound event, formatted as string.

ATTR_APPLICATION_PROCESS_USER: string

The user that owns the process that is triggering this sound event.

ATTR_APPLICATION_VERSION: string

A version number for the program this sound event was triggered by. (e.g. "22.2")

ATTR_CANBERRA_CACHE_CONTROL: string

A special attribute that can be used to control the automatic sound caching of sounds in the sound server. One of "permanent", "volatile", "never". "permanent" will cause this sample to be cached in the server permanently. This is useful for very frequently used sound events such as those used for input feedback. "volatile" may be used for cacheing sounds in the sound server temporarily. They will expire after some time or on cache pressure. Finally, "never" may be used for sounds that should never be cached, because they are only generated very seldomly or even only once at most (such as desktop login sounds).

If this attribute is not explicitly passed to gsound_context_play_simple() or gsound_context_play_full() it will default to "never". If it is not explicitly passed to gsound_context_cache() it will default to "permanent".

If the list of attributes is handed on to the sound server this attribute is stripped from it.

ATTR_CANBERRA_ENABLE: string

A special attribute that can be used to control whether any sounds are played at all. If this attribute is "1" or unset sounds are played as normal. However, if it is "0" all calls to gsound_context_play_simple() or play_full() will fail with GSOUND_ERROR_DISABLED.

If the list of attributes is handed on to the sound server this attribute is stripped from it.

ATTR_CANBERRA_FORCE_CHANNEL: string

A special attribute that can be used to control on which channel a sound is played. The value should be one of mono, front-left, front-right, front-center, rear-left, rear-right, rear-center, lfe, front-left-of-center, front-right-of-center, side-left, side-right, top-center, top-front-left, top-front-right, top-front-center, top-rear-left, top-rear-right, top-rear-center. This attribute is only honoured by some backends, other backends may choose to ignore it completely.

If the list of attributes is handed on to the sound server this attribute is stripped from it.

ATTR_CANBERRA_VOLUME: string

A special attribute that can be used to control the volume this sound event is played in if the backend supports it. A floating point value for the decibel multiplier for the sound. 0 dB relates to zero gain, and is the default volume these sounds are played in.

If the list of attributes is handed on to the sound server this attribute is stripped from it.

ATTR_CANBERRA_XDG_THEME_NAME: string

A special attribute that can be used to control the XDG sound theme that is used for this sample.

If the list of attributes is handed on to the sound server this attribute is stripped from it.

ATTR_CANBERRA_XDG_THEME_OUTPUT_PROFILE: string

A special attribute that can be used to control the XDG sound theme output profile that is used for this sample.

If the list of attributes is handed on to the sound server this attribute is stripped from it.

ATTR_EVENT_DESCRIPTION: string

A descriptive string for the sound event. Localized if possible and applicable.

ATTR_EVENT_ID: string

A textual id for an event sound, as mandated by the XDG sound naming specification.

ATTR_EVENT_MOUSE_BUTTON: string

If this sound event was triggered by a mouse input event, the number of the mouse button that triggered it, formatted as string. 1 for left mouse button, 3 for right, 2 for middle.

ATTR_EVENT_MOUSE_HPOS: string

If this sound event was triggered by a mouse input event, the X position of the mouse cursor as fractional value between 0 and 1, formatted as string, 0 reflecting the left side of the screen, 1 the right side.

ATTR_EVENT_MOUSE_VPOS: string

If this sound event was triggered by a mouse input event, the Y position of the mouse cursor as fractional value between 0 and 1, formatted as string, 0 reflecting the top end of the screen, 1 the bottom end.

ATTR_EVENT_MOUSE_X: string

If this sound event was triggered by a mouse input event, the X position of the mouse cursor on the screen, formatted as string.

ATTR_EVENT_MOUSE_Y: string

If this sound event was triggered by a mouse input event, the Y position of the mouse cursor on the screen, formatted as string.

ATTR_MEDIA_ARTIST: string

The artist of this media. Localized if possible and applicable.

ATTR_MEDIA_FILENAME: string

The file name this media was or can be loaded from.

ATTR_MEDIA_ICON: string

An icon for this media in binary PNG format.

ATTR_MEDIA_ICON_NAME: string

An icon name as defined in the XDG icon naming specifcation.

ATTR_MEDIA_LANGUAGE: string

The language this media is in, in some standard POSIX locale string, such as "de_DE".

ATTR_MEDIA_NAME: string

A name describing the media being played. Localized if possible and applicable.

ATTR_MEDIA_ROLE: string

The "role" this media is played in. For event sounds the string "event". For other cases strings like "music", "video", "game", ...

ATTR_MEDIA_TITLE: string

A (song) title describing the media being played. Localized if possible and applicable.

ATTR_WINDOW_DESKTOP: string

If this sound event was triggered by a window on the screen and the windowing system supports multiple desktops, a comma seperated list of indexes of the desktops this window is visible on. If this attribute is an empty string, it is visible on all desktops (i.e. 'sticky'). The first desktop is 0. (e.g. "0,2,3")

ATTR_WINDOW_HEIGHT: string

If this sound event was triggered by a window on the screen, the pixel height of the window.

ATTR_WINDOW_HPOS: string

If this sound event was triggered by a window on the screen, the X position of the center of the window as fractional value between 0 and 1, formatted as string, 0 reflecting the left side of the screen, 1 the right side.

ATTR_WINDOW_ICON: string

If this sound event was triggered by a window on the screen, binary icon data in PNG format for this window.

ATTR_WINDOW_ICON_NAME: string

If this sound event was triggered by a window on the screen, an icon name for this window, as defined in the XDG icon naming specification.

ATTR_WINDOW_ID: string

If this sound event was triggered by a window on the screen, some identification string for this window, so that the sound system can recognize specific windows.

ATTR_WINDOW_NAME: string

If this sound event was triggered by a window on the screen, the name of this window as human readable string.

ATTR_WINDOW_VPOS: string

If this sound event was triggered by a window on the screen, the Y position of the center of the window as fractional value between 0 and 1, formatted as string, 0 reflecting the top side of the screen, 1 the bottom side.

ATTR_WINDOW_WIDTH: string

If this sound event was triggered by a window on the screen, the pixel width of the window.

ATTR_WINDOW_X: string

If this sound event was triggered by a window on the screen, the X position of the window measured from the top left corner of the screen to the top left corner of the window.

ATTR_WINDOW_X11_DISPLAY: string

If this sound event was triggered by a window on the screen and the windowing system is X11, the X display name of the window (e.g. ":0").

ATTR_WINDOW_X11_MONITOR: string

If this sound event was triggered by a window on the screen and the windowing system is X11, the X monitor id of the window formatted as string (e.g. "0").

ATTR_WINDOW_X11_SCREEN: string

If this sound event was triggered by a window on the screen and the windowing system is X11, the X screen id of the window formatted as string (e.g. "0").

ATTR_WINDOW_X11_XID: string

If this sound event was triggered by a window on the screen and the windowing system is X11, the XID of the window formatted as string.

ATTR_WINDOW_Y: string

If this sound event was triggered by a window on the screen, the y position of the window measured from the top left corner of the screen to the top left corner of the window.

Functions

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method