# AudioRef

<a id="audioref"></a>

# AudioRef

```cpp
#include <icy/speech/event.h>

struct AudioRef
```

[Defined in src/speech/include/icy/speech/event.h:30](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/event.h#L30)

The audio packet an event refers to: its sequence, timing and sample format.

## Public Attributes

| Return | Name | Description |
|--------|------|-------------|
| `uint64_t` | [`sequence`](#sequence)  |  |
| `int64_t` | [`timeUsec`](#timeusec)  |  |
| `int64_t` | [`durationUsec`](#durationusec)  |  |
| `int` | [`sampleRate`](#samplerate-2)  |  |
| `int` | [`channels`](#channels-3)  |  |
| `size_t` | [`numSamples`](#numsamples-1)  |  |
| `std::string` | [`sampleFmt`](#samplefmt-2)  |  |

---

<a id="sequence"></a>

### sequence

```cpp
uint64_t sequence = 0
```

[Defined in src/speech/include/icy/speech/event.h:32](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/event.h#L32)

---

<a id="timeusec"></a>

### timeUsec

```cpp
int64_t timeUsec = 0
```

[Defined in src/speech/include/icy/speech/event.h:33](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/event.h#L33)

---

<a id="durationusec"></a>

### durationUsec

```cpp
int64_t durationUsec = 0
```

[Defined in src/speech/include/icy/speech/event.h:34](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/event.h#L34)

---

<a id="samplerate-2"></a>

### sampleRate

```cpp
int sampleRate = 0
```

[Defined in src/speech/include/icy/speech/event.h:35](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/event.h#L35)

---

<a id="channels-3"></a>

### channels

```cpp
int channels = 0
```

[Defined in src/speech/include/icy/speech/event.h:36](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/event.h#L36)

---

<a id="numsamples-1"></a>

### numSamples

```cpp
size_t numSamples = 0
```

[Defined in src/speech/include/icy/speech/event.h:37](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/event.h#L37)

---

<a id="samplefmt-2"></a>

### sampleFmt

```cpp
std::string sampleFmt
```

[Defined in src/speech/include/icy/speech/event.h:38](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/event.h#L38)
