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

# Oboe (Android)

> API reference for FLCKOboeSource, the low-latency microphone capture source for Android using the Oboe audio library.

> [!NOTE]
>
> **Module:** LCKOboe | **Version:** 1.0 | **Platforms:** Android

## Overview

LCKOboe provides low-latency microphone capture on Android using Google's [Oboe](https://github.com/google/oboe) audio library. It is microphone-only; pair it with LCKFMOD or LCKWwise for game audio capture.

## Supported Channels

| Channel | Supported | Description |
| - | - | - |
| `Game` | No | Use LCKFMOD, LCKWwise, or LCKUnrealAudio |
| `Microphone` | Yes | Low-latency Android mic via Oboe |
| `VoiceChat` | No | Use LCKVivox |

***

## FLCKOboeSource

Audio source class that captures microphone input on Android through the Oboe library. Implements `ILCKFeatureInstance`.

```cpp theme={null}
class FLCKOboeSource : public ILCKFeatureInstance
{
public:
    // ILCKFeatureInstance interface
    virtual bool StartCapture() noexcept override;
    virtual bool StartCapture(TLCKAudioChannelsMask Channels) noexcept override;
    virtual void StopCapture() noexcept override;
    virtual float GetVolume() const noexcept override;
    virtual const FString& GetSourceName() const noexcept override;

protected:
    TLCKAudioChannelsMask SupportedChannels = ELCKAudioChannel::Microphone;
};
```

### ILCKFeatureInstance Methods

| Method | Behavior |
| - | - |
| `StartCapture()` | Opens Oboe audio stream and begins microphone recording |
| `StartCapture(Channels)` | Begins capture if `Microphone` is in the requested channel mask |
| `StopCapture()` | Closes the Oboe stream and stops recording |
| `GetVolume()` | Returns current RMS volume of microphone input (0.0-1.0) |
| `GetSourceName()` | Returns `"LCKOboe"` |

> [!WARNING]
>
> Android microphone capture requires the `RECORD_AUDIO` permission. Ensure your app requests this permission at runtime before calling `StartCapture()`.

***

## FLCKOboeModule

Module that manages the lifecycle of `FLCKOboeSource`.

```cpp theme={null}
class FLCKOboeModule : public IModuleInterface
{
public:
    virtual void StartupModule() override;
    virtual void ShutdownModule() override;

private:
    TSharedPtr<FLCKOboeSource> FeatureInstance;
};

IMPLEMENT_MODULE(FLCKOboeModule, LCKOboe)
```

On startup, the module creates an `FLCKOboeSource` and registers it as a modular feature. The module only loads on Android; it is excluded from other platforms at build time.

***

## Log Category

```cpp theme={null}
DECLARE_LOG_CATEGORY_EXTERN(LogLCKOboe, Log, All);
```

***

## Related

> [card] [Audio Overview](https://docs.liv.tv/api-reference/unreal/audio/overview.md)
>
> Audio system API overview

> [card] [ILCKFeatureInstance](https://docs.liv.tv/api-reference/unreal/audio-source-interface.md)
>
> Full interface specification


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.