<!-- Generated by tools/generate_docs.py. Do not edit. -->

# `MC_mdaClipCreate`

Create a media clip with a media type, data capacity, and event callback.

## Prototype

```c
MC_MdaClip *MC_mdaClipCreate(M_Char *mType, M_Int32 bufSize, MEDIACB cb);
```

### MC_MdaClip \*MC_mdaClipCreate(M_Char \*mType, M_Int32 bufSize, MEDIACB cb)

Create a media clip with a media type, data capacity, and event callback. 

**Ownership**
: The caller owns a successful clip handle and releases it with MC_mdaClipFree. 

**API level**
: WIPI-C 1.2.1, ordinal 101. 

**Documentation status**
: draft. 

* **Parameters:**
  * **mType** – Provider-recognized media type string. 
  * **bufSize** – Clip data capacity. 
  * **cb** – Media event callback. 
* **Returns:**
  A media clip handle or the provider-defined failure value. 

## Catalog identity

| Field                | Value                                                   |
|----------------------|---------------------------------------------------------|
| API level            | `1.2.1`                                                 |
| Family               | [`MC_MDA`](https://mirusu400.github.io/libwipi/latest/generated/api/1.2.1/families/media.md) |
| Ordinal              | 101                                                     |
| Documentation        | `draft`                                                 |
| Implementation class | `table`                                                 |
| ABI class            | `word-tail`                                             |

## Usage

### Parameters

| Name      | Meaning                                |
|-----------|----------------------------------------|
| `mType`   | Provider-recognized media type string. |
| `bufSize` | Clip data capacity.                    |
| `cb`      | Media event callback.                  |

### Return value

A media clip handle or the provider-defined failure value.

### Ownership

The caller owns a successful clip handle and releases it with MC_mdaClipFree.

## Profile availability

API membership, device ABI, and install profile are independent. The rows below
describe libwipi implementation evidence, not platform-wide WIPI requirements.

| ABI profile                 | Install profile        | Current evidence                                  |
|-----------------------------|------------------------|---------------------------------------------------|
| `host-sim`                  | `none`                 | headers only                                      |
| `ktf-samsung`               | `none`                 | linkable generated veneer                         |
| `ktf-samsung`               | `aram-ktf`             | linkable generated veneer                         |
| `ktf-samsung`               | `sch-w8300-qpst-probe` | linkable generated veneer; named-device candidate |
| `lgt-raptor`                | `aram-raptor`          | observed in the scoped emulator suite             |
| `lgt-raptor`                | `aram-wie-raptor`      | observed in the scoped emulator suite             |
| `skt-samsung-sch-w830-dl21` | `none`                 | declared; no direct SCH binding                   |

## Compiled examples

- [Synthetic Audio Player](https://mirusu400.github.io/libwipi/latest/generated/examples/audio-player.md)
- [Conformance](https://mirusu400.github.io/libwipi/latest/generated/examples/conformance.md)
- [Media suite](https://mirusu400.github.io/libwipi/latest/generated/examples/media-suite.md)

## Evidence boundary

Samsung/KTF selector confidence: `confirmed`. Catalog evidence: `anycall_magichole:analysis/decompiled/wipi_mc_mda_spec_adapter.c:334`.
