<!--
{
  "availability" : [
    "DriverKit: 21.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioDriverKit",
  "identifier" : "/documentation/AudioDriverKit/IOUserAudioDevice/SetWantsStreamFormatsRestored",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AudioDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserAudioDevice@F@SetWantsStreamFormatsRestored#b#"
  },
  "title" : "SetWantsStreamFormatsRestored"
}
-->

# SetWantsStreamFormatsRestored

```
void SetWantsStreamFormatsRestored(bool in_wants_stream_formats_restored);
```

## Parameters

`in_wants_stream_formats_restored`

bool value indicating if the host should or should not restore the stream formats for the device
A value of false indicates that the stream formats for the device should NOT be saved/restored
A value of true indicated that the stream formats for the device should be saved/restored

## Discussion

\abstract Setter on the device object that tells the host that the stream formats for the device should or should not be
saved/restored when the device is first published. If the device doesn’t implement
this property, it is assumed that the settings should be saved and restored.
Note that this should be set before the device is published to the host.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)