|
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 |
A selection of options available when creating realtime threads. More...
#include "juce_Thread.h"
Public Member Functions | |
| RealtimeOptions | withPriority (int newPriority) const |
| A value with a range of 0-10, where 10 is the highest priority. | |
| RealtimeOptions | withProcessingTimeMs (double newProcessingTimeMs) const |
| Specify the expected amount of processing time required each time the thread wakes up. | |
| RealtimeOptions | withMaximumProcessingTimeMs (double newMaximumProcessingTimeMs) const |
| Specify the maximum amount of processing time required each time the thread wakes up. | |
| RealtimeOptions | withApproximateAudioProcessingTime (int samplesPerFrame, double sampleRate) const |
| Specify the maximum amount of processing time required each time the thread wakes up. | |
| RealtimeOptions | withPeriodMs (double newPeriodMs) const |
| Specify the approximate amount of time between each thread wake up. | |
| RealtimeOptions | withPeriodHz (double newPeriodHz) const |
| Specify the approximate frequency at which the thread will be woken up. | |
| int | getPriority () const |
| Returns a value with a range of 0-10, where 10 is the highest priority. | |
| std::optional< double > | getProcessingTimeMs () const |
| Returns the expected amount of processing time required each time the thread wakes up. | |
| std::optional< double > | getMaximumProcessingTimeMs () const |
| Returns the maximum amount of processing time required each time the thread wakes up. | |
| std::optional< double > | getPeriodMs () const |
| Returns the approximate amount of time between each thread wake up, or nullopt if there is no inherent periodicity. | |
A selection of options available when creating realtime threads.
Definition at line 76 of file juce_Thread.h.
| std::optional< double > juce::Thread::RealtimeOptions::getMaximumProcessingTimeMs | ( | ) | const |
Returns the maximum amount of processing time required each time the thread wakes up.
Definition at line 185 of file juce_Thread.h.
| std::optional< double > juce::Thread::RealtimeOptions::getPeriodMs | ( | ) | const |
Returns the approximate amount of time between each thread wake up, or nullopt if there is no inherent periodicity.
Definition at line 195 of file juce_Thread.h.
| int juce::Thread::RealtimeOptions::getPriority | ( | ) | const |
Returns a value with a range of 0-10, where 10 is the highest priority.
Definition at line 165 of file juce_Thread.h.
| std::optional< double > juce::Thread::RealtimeOptions::getProcessingTimeMs | ( | ) | const |
Returns the expected amount of processing time required each time the thread wakes up.
Definition at line 175 of file juce_Thread.h.
| RealtimeOptions juce::Thread::RealtimeOptions::withApproximateAudioProcessingTime | ( | int | samplesPerFrame, |
| double | sampleRate | ||
| ) | const |
Specify the maximum amount of processing time required each time the thread wakes up.
This is identical to 'withMaximumProcessingTimeMs' except it calculates the processing time from a sample rate and block size. This is useful if you want to run this thread in parallel to an audio device thread.
Only used by macOS/iOS.
Definition at line 124 of file juce_Thread.h.
| RealtimeOptions juce::Thread::RealtimeOptions::withMaximumProcessingTimeMs | ( | double | newMaximumProcessingTimeMs | ) | const |
Specify the maximum amount of processing time required each time the thread wakes up.
Only used by macOS/iOS.
Definition at line 108 of file juce_Thread.h.
| RealtimeOptions juce::Thread::RealtimeOptions::withPeriodHz | ( | double | newPeriodHz | ) | const |
Specify the approximate frequency at which the thread will be woken up.
Alternatively call withPeriodMs().
Only used by macOS/iOS.
Definition at line 155 of file juce_Thread.h.
| RealtimeOptions juce::Thread::RealtimeOptions::withPeriodMs | ( | double | newPeriodMs | ) | const |
Specify the approximate amount of time between each thread wake up.
Alternatively call withPeriodHz().
Only used by macOS/iOS.
Definition at line 141 of file juce_Thread.h.
| RealtimeOptions juce::Thread::RealtimeOptions::withPriority | ( | int | newPriority | ) | const |
A value with a range of 0-10, where 10 is the highest priority.
Currently only used by Posix platforms.
Definition at line 84 of file juce_Thread.h.
| RealtimeOptions juce::Thread::RealtimeOptions::withProcessingTimeMs | ( | double | newProcessingTimeMs | ) | const |
Specify the expected amount of processing time required each time the thread wakes up.
Only used by macOS/iOS.
Definition at line 96 of file juce_Thread.h.