22#include "livekit/audio_frame.h"
23#include "livekit/local_track_publication.h"
24#include "livekit/track.h"
25#include "livekit/visibility.h"
34class PlatformAudioSource;
72 const std::shared_ptr<AudioSource>& source);
87 const std::shared_ptr<PlatformAudioSource>& source);
111 std::shared_ptr<LocalTrackPublication>
publication() const noexcept {
return local_publication_; }
117 void setPublication(
const std::shared_ptr<LocalTrackPublication>& publication)
noexcept override {
118 local_publication_ = publication;
126 std::shared_ptr<LocalTrackPublication> local_publication_;
RAII wrapper for an FFI handle (uintptr_t) coming from Rust.
Definition ffi_handle.h:29
Represents a user-provided audio track sourced from the local device.
Definition local_audio_track.h:58
std::string toString() const
Return a human-readable string representation of the track.
void mute()
Mutes the audio track.
static std::shared_ptr< LocalAudioTrack > createLocalAudioTrack(const std::string &name, const std::shared_ptr< AudioSource > &source)
Creates a new local audio track backed by the given AudioSource.
void unmute()
Unmute the audio track.
std::shared_ptr< LocalTrackPublication > publication() const noexcept
Returns the publication that owns this track, or nullptr if the track is not published.
Definition local_audio_track.h:111
void setPublication(const std::shared_ptr< LocalTrackPublication > &publication) noexcept override
Set the publication that owns this track.
Definition local_audio_track.h:117
static std::shared_ptr< LocalAudioTrack > createLocalAudioTrack(const std::string &name, const std::shared_ptr< PlatformAudioSource > &source)
Creates a new local audio track backed by the given PlatformAudioSource.
Base class for local and remote media tracks.
Definition track.h:77
Public API for the LiveKit C++ Client SDK.
Definition audio_frame.h:25