Skip to main content
Module: LCKFMOD | Version: 1.0 | Platforms: All

Overview

LCKFMOD provides integration with FMOD Studio, capturing game audio output for recording. This plugin hooks into the FMOD audio system to capture the final mixed output using a DSP node attached to the master channel group.

Supported Channels

Requirements

LCKFMOD requires the FMODStudio plugin which must be downloaded separately from fmod.com. The LCKFMOD plugin is disabled by default and will not compile without FMODStudio installed.

Dependencies

Automatic Integration

The plugin automatically:
  1. Detects FMOD Studio plugin presence
  2. Registers capture callback on the master bus
  3. Registers with the LCK audio system

Source Implementation

FLCKFMODSource

The core audio source class that captures game audio from the FMOD master channel group:

Capture Point

LCKFMOD captures audio from the FMOD master bus after all mixing and effects processing:

Technical Details

DSP-Based Capture

The plugin uses FMOD’s DSP system to intercept audio non-destructively:
  • A custom FMOD::DSP is created and attached at FMOD_CHANNELCONTROL_DSP_TAIL position on the master FMOD::ChannelGroup
  • The DSP callback reads audio data without modifying the output
  • Audio callback runs on the FMOD audio thread
  • Data is marshaled to the game thread via AsyncTask
  • PCM format: 32-bit float, interleaved

DSP Lifecycle

  1. StartCapture — Creates a custom DSP, obtains the master ChannelGroup, and adds the DSP at tail position
  2. Audio callback — The DSP read callback copies PCM data and fires OnAudioDataDelegate
  3. StopCapture — Removes the DSP from the channel group and releases it

Configuration

Sample Rate

We recommend setting the sample rate explicitly to 48kHz rather than leaving it at 0 (auto): FMOD sample rate setting

Output Format

Set FMOD Output Format to Stereo. The default 5.1 surround is not supported at this time. FMOD output format
Voice chat and game audio must match in samplerate, otherwise audio distortion will occur in recordings.

Performance

LCKFMOD has minimal performance impact:
FMOD’s audio processing is highly optimized. LCKFMOD adds negligible overhead to the existing audio pipeline.

Compatibility

Troubleshooting

  1. Verify FMOD Studio plugin is enabled
  2. Check that audio is playing through FMOD
  3. Verify master bus is not muted
  4. Check LogLCKFMOD for errors
  1. Check sample rate matches between FMOD and encoder
  2. Verify buffer sizes are adequate
  3. Check for CPU overload in FMOD profiler
  1. Verify FMOD system is fully initialized before capture starts
  2. Check that MasterGroup is valid
  3. Look for FMOD error codes in LogLCKFMOD

Log Category

See Also

Audio Overview

Audio system architecture

Wwise

Alternative middleware integration