| Modifier and Type | Field and Description |
|---|---|
| public static final String | SUB_TYPE
This type of action this object represents. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether to mix this sound with any other sound already playing (default: false).Gets the flag specifying whether to mix this sound with any other sound already playing. |
| public boolean | Returns: Whether to repeat the sound indefinitely (default: false).Gets whether to repeat the sound indefinitely. |
| public COSStream | |
| public boolean | Returns: Whether to play the sound synchronously (true) or asynchronously (false, also the default).Gets the synchronous flag. |
| public float | Returns: The volume at which to play the sound, in the range −1.0 to 1.0. Default value: 1.0.Sets the volume. |
| public void | setMix(boolean
whether to mix this sound with any other sound already playing.
(false). mix)The flag specifying whether to mix this sound with any other sound already playing. |
| public void | setRepeat(boolean
Whether to repeat the sound indefinitely. repeat)A flag specifying whether to repeat the sound indefinitely. |
| public void | |
| public void | setSynchronous(boolean
Whether to play the sound synchronously (true) or asynchronously (false). synchronous)A flag specifying whether to play the sound synchronously or asynchronously. |
| public void | setVolume(float
The volume at which to play the sound, in the range −1.0 to 1.0. volume)Gets the volume at which to play the sound, in the range −1.0 to 1.0. |
| SUB_TYPE | back to summary |
|---|---|
| public static final String SUB_TYPE This type of action this object represents. | |
| PDActionSound | back to summary |
|---|---|
| public PDActionSound() Default constructor. | |
| PDActionSound | back to summary |
|---|---|
| public PDActionSound(COSDictionary a) Constructor.
| |
| getMix | back to summary |
|---|---|
| public boolean getMix() Gets the flag specifying whether to mix this sound with any other sound already playing. If this flag is false, any previously playing sound shall be stopped before starting this sound; this can be used to stop a repeating sound (see Repeat).
| |
| getRepeat | back to summary |
|---|---|
| public boolean getRepeat() Gets whether to repeat the sound indefinitely.
| |
| getSound | back to summary |
|---|---|
| public COSStream getSound() Gets the sound object.
| |
| getSynchronous | back to summary |
|---|---|
| public boolean getSynchronous() Gets the synchronous flag. It specifyes whether to play the sound synchronously or asynchronously. When true, the reader allows no further user interaction other than canceling the sound until the sound has been completely played.
| |
| getVolume | back to summary |
|---|---|
| public float getVolume() Sets the volume.
| |
| setMix | back to summary |
|---|---|
| public void setMix(boolean mix) The flag specifying whether to mix this sound with any other sound already playing. If this flag is false, any previously playing sound shall be stopped before starting this sound; this can be used to stop a repeating sound (see Repeat). Default value: false.
| |
| setRepeat | back to summary |
|---|---|
| public void setRepeat(boolean repeat) A flag specifying whether to repeat the sound indefinitely.
| |
| setSound | back to summary |
|---|---|
| public void setSound(COSStream sound) Sets the sound object.
| |
| setSynchronous | back to summary |
|---|---|
| public void setSynchronous(boolean synchronous) A flag specifying whether to play the sound synchronously or asynchronously. When true, the reader allows no further user interaction other than canceling the sound until the sound has been completely played.
| |
| setVolume | back to summary |
|---|---|
| public void setVolume(float volume) Gets the volume at which to play the sound, in the range −1.0 to 1.0.
| |