# StopAttachment

Stops an attachment.

### Synopsis

`Err StopAttachment (Item Attachment, TagArg *tagList)
Err StopAttachmentVA (Item Attachment, uint32 tag1, ...)`

### Description

This function abruptly stops an attachment. The attachment doesn't go into its release phase when stopped this way.

### Arguments

Attachment
  The item number for the attachment.

### Tags

None

### Return Value

The function returns a non-negative value if successful or an error code (a negative value) if an error occurs.

### Implementation

SWI implemented in Audio folio V20.

### Caveats

Prior to V24, `StopAttachment()` did not support envelope attachments.

### Associated Files

audio.h

### See Also

`StartAttachment``(),` ReleaseAttachment`(),` LinkAttachments`()`