JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::AudioFormatWriter::ThreadedWriter::Buffer Class Referencefinal
Inheritance diagram for juce::AudioFormatWriter::ThreadedWriter::Buffer:
juce::TimeSliceClient

Public Member Functions

 Buffer (TimeSliceThread &tst, AudioFormatWriter *w, int channels, int numSamples)
 
bool write (const float *const *data, int numSamples)
 
int useTimeSlice () override
 Called back by a TimeSliceThread.
 
int writePendingData ()
 
void setDataReceiver (IncomingDataReceiver *newReceiver)
 
void setFlushInterval (int numSamples) noexcept
 

Detailed Description

Definition at line 214 of file juce_AudioFormatWriter.cpp.

Constructor & Destructor Documentation

◆ Buffer()

juce::AudioFormatWriter::ThreadedWriter::Buffer::Buffer ( TimeSliceThread tst,
AudioFormatWriter w,
int  channels,
int  numSamples 
)

Definition at line 217 of file juce_AudioFormatWriter.cpp.

◆ ~Buffer()

juce::AudioFormatWriter::ThreadedWriter::Buffer::~Buffer ( )
override

Definition at line 226 of file juce_AudioFormatWriter.cpp.

Member Function Documentation

◆ setDataReceiver()

void juce::AudioFormatWriter::ThreadedWriter::Buffer::setDataReceiver ( IncomingDataReceiver newReceiver)

Definition at line 309 of file juce_AudioFormatWriter.cpp.

◆ setFlushInterval()

void juce::AudioFormatWriter::ThreadedWriter::Buffer::setFlushInterval ( int  numSamples)
noexcept

Definition at line 319 of file juce_AudioFormatWriter.cpp.

◆ useTimeSlice()

int juce::AudioFormatWriter::ThreadedWriter::Buffer::useTimeSlice ( )
overridevirtual

Called back by a TimeSliceThread.

When you register this class with it, a TimeSliceThread will repeatedly call this method.

The implementation of this method should use its time-slice to do something that's quick - never block for longer than absolutely necessary.

Returns
Your method should return the number of milliseconds which it would like to wait before being called again. Returning 0 will make the thread call again as soon as possible (after possibly servicing other busy clients). If you return a value below zero, your client will be removed from the list of clients, and won't be called again. The value you specify isn't a guarantee, and is only used as a hint by the thread - the actual time before the next callback may be more or less than specified. You can force the TimeSliceThread to wake up and poll again immediately by calling its notify() method.

Implements juce::TimeSliceClient.

Definition at line 259 of file juce_AudioFormatWriter.cpp.

◆ write()

bool juce::AudioFormatWriter::ThreadedWriter::Buffer::write ( const float *const data,
int  numSamples 
)

Definition at line 235 of file juce_AudioFormatWriter.cpp.

◆ writePendingData()

int juce::AudioFormatWriter::ThreadedWriter::Buffer::writePendingData ( )

Definition at line 264 of file juce_AudioFormatWriter.cpp.


The documentation for this class was generated from the following file: