kwave  18.07.70
Track.cpp File Reference
#include "config.h"
#include <new>
#include <QMutexLocker>
#include <QReadLocker>
#include <QWriteLocker>
#include "libkwave/SampleReader.h"
#include "libkwave/Stripe.h"
#include "libkwave/Track.h"
#include "libkwave/TrackWriter.h"
#include "libkwave/Utils.h"
#include "libkwave/Writer.h"
Include dependency graph for Track.cpp:

Go to the source code of this file.

Macros

#define STRIPE_LENGTH_OPTIMAL   (4UL * 1024UL * 1024UL) /* 16MB */
 
#define STRIPE_LENGTH_MAXIMUM   (STRIPE_LENGTH_OPTIMAL * 2)
 
#define STRIPE_LENGTH_MINIMUM   (STRIPE_LENGTH_OPTIMAL / 2)
 

Macro Definition Documentation

◆ STRIPE_LENGTH_MAXIMUM

#define STRIPE_LENGTH_MAXIMUM   (STRIPE_LENGTH_OPTIMAL * 2)

Maximum stripe size [samples]. If a stripe gets bigger as this size, it will be split into two stripes with equal size. Those two new ones always are smaller than the maximum and bigger than the minimum size.

Definition at line 46 of file Track.cpp.

Referenced by Kwave::Track::appendAfter(), Kwave::Track::appendStripe(), Kwave::Track::defragment(), and Kwave::Track::Track().

◆ STRIPE_LENGTH_MINIMUM

#define STRIPE_LENGTH_MINIMUM   (STRIPE_LENGTH_OPTIMAL / 2)

Minimum stripe size [samples] If a stripe is smaller than this size and it is possible to merge it with another neighbour stripe, it will be merged to it. If the result is bigger than STRIPE_LENGTH_MAXIMUM, it will be split again into two parts.

Definition at line 55 of file Track.cpp.

Referenced by Kwave::Track::defragment().

◆ STRIPE_LENGTH_OPTIMAL

#define STRIPE_LENGTH_OPTIMAL   (4UL * 1024UL * 1024UL) /* 16MB */

Optimal size of a stripe [samples]. When creating a new stripe, it should have this size

Definition at line 37 of file Track.cpp.

Referenced by Kwave::Track::Track().