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)

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 of all properties of player. The field names of the structure correspond to property names.

set (player, name, value)
set (player, properties)
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 field values. Given only the audioplayer object, return a structure of settable properties.

© 1996–2020 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/v5.2.0/Player-Properties.html