# SendData<TAudioContext, T>(TAudioContext, in T)

> Send data from ProcessorInstance.IRealtime to ProcessorInstance.IControl<TRealtime> or vice versa.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Audio](/engine/6000.5/script-reference/unityengine/audio.md)
* **Assembly:** UnityEngine.AudioModule

## SendData\<T, U>(T, T)

```csharp
public readonly bool SendData<TAudioContext, T>(TAudioContext context, in T data) where TAudioContext : unmanaged, ProcessorInstance.IContext where T : unmanaged
```

### Parameters

**** (T): The context key which targets the other logical thread receiver.**** (T): The data to be received in the other logical thread.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if this operation is currently possible. This can fail for instance when the [ProcessorInstance](/engine/6000.5/script-reference/unityengine/audio/processorinstance.md) is being in process of being disposed through DestroyProcessor, so you must guard against this if you are transferring resources. |
