Loading...
Searching...
No Matches
AudioLocation.h
Go to the documentation of this file.
// Copyright (c) 2008-2023 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_AUDIOLOCATION_H
#define OPENSHOT_AUDIOLOCATION_H
namespace openshot
{
struct AudioLocation {
int64_t frame;
int sample_start;
bool is_near(AudioLocation location, int samples_per_frame, int64_t amount);
AudioLocation() : frame(0), sample_start(0) {}
AudioLocation(int64_t frame, int sample_start) : frame(frame), sample_start(sample_start) {}
};
}
#endif
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29
openshot::AudioLocation::AudioLocation
AudioLocation(int64_t frame, int sample_start)
Definition AudioLocation.h:31
openshot::AudioLocation::AudioLocation
AudioLocation()
Definition AudioLocation.h:30
openshot::AudioLocation::is_near
bool is_near(AudioLocation location, int samples_per_frame, int64_t amount)
Definition FFmpegReader.cpp:114
openshot::AudioLocation::frame
int64_t frame
Definition AudioLocation.h:26
openshot::AudioLocation::sample_start
int sample_start
Definition AudioLocation.h:27