---
title: "AUGraphNewNodeSubGraph(_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/augraphnewnodesubgraph(_:_:)"
---

# AUGraphNewNodeSubGraph(_:_:)

Creates a node object to represent a subgraph.

## Declaration

```swift
func AUGraphNewNodeSubGraph(_ inGraph: AUGraph, _ outNode: UnsafeMutablePointer<AUNode>) -> OSStatus
```

## Parameters

- `inGraph`: The AUGraph object that you want to add a subgraph to.
- `outNode`: The node that represents the subgraph.

## Return Value

Return Value A result code.

## Discussion

Discussion This function creates a node that represents a subgraph. The subgraph can be retrieved with the AUGraphGetNodeInfoSubGraph(_:_:_:) function. The subgraph is owned by the parent graph and will be disposed when the parent graph is disposed or when the node is removed from the parent graph.

## See Also

### Audio Unit Processing Graph Services Functions

- [AUGraphAddNode(_:_:_:)](audiotoolbox/augraphaddnode(_:_:_:).md)
- [AUGraphAddRenderNotify(_:_:_:)](audiotoolbox/augraphaddrendernotify(_:_:_:).md)
- [AUGraphClearConnections(_:)](audiotoolbox/augraphclearconnections(_:).md)
- [AUGraphClose(_:)](audiotoolbox/augraphclose(_:).md)
- [AUGraphConnectNodeInput(_:_:_:_:_:)](audiotoolbox/augraphconnectnodeinput(_:_:_:_:_:).md)
- [AUGraphCountNodeInteractions(_:_:_:)](audiotoolbox/augraphcountnodeinteractions(_:_:_:).md)
- [AUGraphDisconnectNodeInput(_:_:_:)](audiotoolbox/augraphdisconnectnodeinput(_:_:_:).md)
- [AUGraphGetCPULoad(_:_:)](audiotoolbox/augraphgetcpuload(_:_:).md)
- [AUGraphGetIndNode(_:_:_:)](audiotoolbox/augraphgetindnode(_:_:_:).md)
- [AUGraphGetInteractionInfo(_:_:_:)](audiotoolbox/augraphgetinteractioninfo(_:_:_:).md)
- [AUGraphGetMaxCPULoad(_:_:)](audiotoolbox/augraphgetmaxcpuload(_:_:).md)
- [AUGraphGetNodeCount(_:_:)](audiotoolbox/augraphgetnodecount(_:_:).md)
- [AUGraphGetNodeInfoSubGraph(_:_:_:)](audiotoolbox/augraphgetnodeinfosubgraph(_:_:_:).md)
- [AUGraphGetNodeInteractions(_:_:_:_:)](audiotoolbox/augraphgetnodeinteractions(_:_:_:_:).md)
- [AUGraphGetNumberOfInteractions(_:_:)](audiotoolbox/augraphgetnumberofinteractions(_:_:).md)
