play_simple


Description:

public bool play_simple (Cancellable? cancellable = null, ...) throws Error

The basic "fire-and-forget" play command.

This function will not block, and just sends a request to the sound server before immediately returning.

If you need to know when a sound finishes playing then you should call play_full instead.

You can cancel playback at any time by calling cancel on cancellable, if supplied.

Parameters:

this

A Context

cancellable

A Cancellable, or null

...

A null-terminated list of attribute-value pairs

error

Return location for error, or null

Returns:

true on success, or false, populating throws