# spSetStopAction

Set up an SPAction to stop reading.

### Synopsis

`Err spSetStopAction (SPAction *resultAction)`

### Description

Sets up the SPAction to stop reading as the resulting action of a decision function.

### Arguments

action
  Pointer to an SPAction to fill out. This must be the pointer passed to your decision function.

### Return Value

Non-negative value on success; negative error code on failure.

### Outputs

On success, fills out SPAction to cause a branch to the specified marker. On failure, nothing is written to the SPAction.

### Implementation

Library call implemented in music.lib V24.

### Associated Files

soundplayer.h, music.lib

### See Also

``SPDecisionFunction`, spSetBranchAction(), spStopAtMarker()`