OpenShot Library | libopenshot  0.3.3
AudioLocation.h
Go to the documentation of this file.
1 
9 // Copyright (c) 2008-2023 OpenShot Studios, LLC
10 //
11 // SPDX-License-Identifier: LGPL-3.0-or-later
12 
13 #ifndef OPENSHOT_AUDIOLOCATION_H
14 #define OPENSHOT_AUDIOLOCATION_H
15 
16 
17 namespace openshot
18 {
25  struct AudioLocation {
26  int64_t frame;
28 
29  bool is_near(AudioLocation location, int samples_per_frame, int64_t amount);
32  };
33 }
34 
35 #endif
openshot
This namespace is the default namespace for all code in the openshot library.
Definition: Compressor.h:28
openshot::AudioLocation
This struct holds the associated video frame and starting sample # for an audio packet.
Definition: AudioLocation.h:25
openshot::AudioLocation::frame
int64_t frame
Definition: AudioLocation.h:26
openshot::AudioLocation::sample_start
int sample_start
Definition: AudioLocation.h:27
openshot::AudioLocation::is_near
bool is_near(AudioLocation location, int samples_per_frame, int64_t amount)
Definition: FFmpegReader.cpp:107
openshot::AudioLocation::AudioLocation
AudioLocation()
Definition: AudioLocation.h:30
openshot::AudioLocation::AudioLocation
AudioLocation(int64_t frame, int sample_start)
Definition: AudioLocation.h:31