Immutable waveform provider, retained by each submitted job across replacement. @thread Worker only; inputs are owned by the job and borrowed for the call. No editor access or callbacks. @reentrancy Shared providers can be called concurrently by different sessions; mutable provider state must be synchronized. 更多...
#include <AudioSourcePreview.h>
Public 成员函数 | |
| virtual | ~IAudioSourcePreviewProvider ()=default |
| virtual audio_editing::Result< audio_editing::AudioWaveformResult > | generate (const audio_editing::AudioWaveformRequest &request, const audio_editing::EditorAudioPcm &pcm, const editing::TaskContext &context) const =0 |
| Compute a waveform from an immutable PCM snapshot; use TaskContext to cancel cooperatively. @cost Linear in decoded samples plus output buckets, once per invalidation. | |
详细描述
Immutable waveform provider, retained by each submitted job across replacement. @thread Worker only; inputs are owned by the job and borrowed for the call. No editor access or callbacks. @reentrancy Shared providers can be called concurrently by different sessions; mutable provider state must be synchronized.
- 注解
- Final shared-provider release may run on the owner or worker thread; provider destruction must support both. @lifetime Provider must bound its computation and check cancellation; destruction may wait for the call.
在文件 AudioSourcePreview.h 第 19 行定义.
构造及析构函数说明
◆ ~IAudioSourcePreviewProvider()
|
virtualdefault |
成员函数说明
◆ generate()
|
pure virtual |
Compute a waveform from an immutable PCM snapshot; use TaskContext to cancel cooperatively. @cost Linear in decoded samples plus output buckets, once per invalidation.
该类的文档由以下文件生成:
- src/modules/audio/editor/AudioSourcePreview.h