Previous: , Up: Audio Player   [Contents][Index]


33.3.2 Properties

The remaining couple of methods are used to get and set various properties of the audioplayer object.

 
value = get (player, name)
values = get (player, {name1, name2, …})
values = get (player)

Return the value of the property identified by name.

If name is a cell array return the values of the properties identified by the elements of the cell array. Given only the player object, return a scalar structure with values for all properties of player. The field names of the structure correspond to the property names.

See also: @audioplayer/set, @audioplayer/audioplayer.

 
set (player, name, value)
set (player, name_cell, value_cell)
set (player, properties_struct)
properties = set (player)

Set the value of property specified by name to a given value.

If name and value are cell arrays, set each property to the corresponding value. Given a structure of properties with fields corresponding to property names, set the value of those properties to the corresponding field values. Given only an audioplayer object, return a structure of configurable properties (i.e., writeable properties).

See also: @audioplayer/get, @audioplayer/audioplayer.