Player12
An open source football management simulator
Loading...
Searching...
No Matches
match_audio.cpp File Reference
#include "audio/match_audio.h"
#include <algorithm>
#include <cmath>
#include <utility>
#include "audio/audio_device.h"
#include "model/match_engine.h"
#include "model/player.h"
#include "model/settings_manager.h"

Functions

MatchAudioFrame captureMatchAudioFrame (const MatchEngine &engine, float playbackSpeed, bool paused, bool skipped)
 

Function Documentation

◆ captureMatchAudioFrame()

MatchAudioFrame captureMatchAudioFrame ( const MatchEngine &  engine,
float  playbackSpeed,
bool  paused,
bool  skipped 
)

Copies the frame state from a live engine (UI thread only).