> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyAudioInputState

> States of an audio input associated with a local chat control.

States of an audio input associated with a local chat control.

## Syntax

```cpp theme={null}
enum class PartyAudioInputState    
{  
    NoInput = 0,  
    Initialized = 1,  
    NotFound = 2,  
    UserConsentDenied = 3,  
    UnsupportedFormat = 4,  
    AlreadyInUse = 5,  
    UnknownError = 6,  
}  
```

## Constants

| Constant          | Description                                                                                                                                                                                                                                 |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| NoInput           | No audio input was specified.                                                                                                                                                                                                               |
| Initialized       | The audio input was successfully initialized.                                                                                                                                                                                               |
| NotFound          | The audio input wasn't found.<br /><br /> This can occur if the input was removed while in use. When in this state, the chat control will subscribe to audio device changes and use the specified input if it can be found at a later time. |
| UserConsentDenied | The user didn't give permission to access the input.                                                                                                                                                                                        |
| UnsupportedFormat | The input doesn't provide a supported format.                                                                                                                                                                                               |
| AlreadyInUse      | The audio input device is already in use by another chat control.                                                                                                                                                                           |
| UnknownError      | Initializing the input resulted in an unknown error.                                                                                                                                                                                        |

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)


## Related topics

- [PartyLocalChatAudioInputChangedStateChange](/services/playfab/multiplayer/networking/reference/structs/partylocalchataudioinputchangedstatechange.md)
- [Troubleshooting Voice Chat](/services/playfab/community/voice-communications/concepts-audio-troubleshooting.md)
- [Party C/C++ API overview](/services/playfab/multiplayer/networking/reference/party_members.md)
- [PartySetChatAudioInputCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partysetchataudioinputcompletedstatechange.md)
- [PartyLocalChatControl::SetAudioInput](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_setaudioinput.md)
