28 std::lock_guard<std::mutex> lock(
access);
32 copy->referenceCount = 1;
40 std::lock_guard<std::mutex> lock(
access);
47 std::unique_lock<std::mutex> lock(
access);
104 src.offset =
src.length = 0;
Represents a continuous set of data samples.
void drop()
Dereferences the frame when it is not used any more.
std::mutex access
exclusive access
virtual Fragment * clone() const =0
unsigned int referenceCount
number of occurrences of this frame in sequences
Fragment * edit()
Enables editing of the current frame.
Fragment * use()
References the frame when it is used one more time.
Abstract fragmented signals representation.
void operator=(const FragmentPtr &)
int offset
offset in samples inside the fragment since its beginning
int length
number of samples to use from the fragment
FragmentPtr()
Initialize to null.
JNIEnv jobject jint jint jint jfloat fragment
Beatmup::AbstractBitmap * copy
return(jlong) new Beatmup jlong jstring src