Revision-safe play/pause/seek/custom-loop state machine for asset audition. 更多...
#include <AudioTransport.h>
Public 成员函数 | |
| Result< void > | bind (StableId asset, Revision sourceRevision, IAudioTransportBackend *backend) |
| Bind a borrowed backend and stop any previously bound audition. | |
| Result< void > | setLoop (Revision expectedRevision, bool enabled, double startSeconds=0.0, double endSeconds=0.0) |
| Configure a bounded loop range; zero end uses the clip duration. | |
| Result< void > | play (Revision expectedRevision) |
| Play. | |
| Result< void > | pause (Revision expectedRevision) |
| Pause. | |
| Result< void > | stop (Revision expectedRevision) |
| Stops . | |
| Result< void > | seek (Revision expectedRevision, double seconds) |
| Seeks . | |
| Result< AudioTransportSnapshot > | update (Revision expectedRevision) |
| Poll backend state and wrap the custom loop without changing documents. | |
| Result< AudioTransportSnapshot > | snapshot (Revision expectedRevision) const |
| Read the current playhead only for the bound source revision. | |
| void | unbind () |
| Stop and forget the borrowed backend. | |
详细描述
Revision-safe play/pause/seek/custom-loop state machine for asset audition.
在文件 AudioTransport.h 第 52 行定义.
成员函数说明
◆ bind()
| Result< void > eve::audio_editing::AudioAuditionTransport::bind | ( | StableId | asset, |
| Revision | sourceRevision, | ||
| IAudioTransportBackend * | backend | ||
| ) |
Bind a borrowed backend and stop any previously bound audition.
在文件 AudioTransport.cpp 第 9 行定义.
引用了 duration, eve::audio_editing::IAudioTransportBackend::duration(), revision, eve::audio_editing::IAudioTransportBackend::setNativeLooping() , 以及 unbind().
被这些函数引用 eve::audio_editor::AudioSourceEditor::attachLiveAudition().
◆ pause()
| Result< void > eve::audio_editing::AudioAuditionTransport::pause | ( | Revision | expectedRevision | ) |
◆ play()
| Result< void > eve::audio_editing::AudioAuditionTransport::play | ( | Revision | expectedRevision | ) |
◆ seek()
| Result< void > eve::audio_editing::AudioAuditionTransport::seek | ( | Revision | expectedRevision, |
| double | seconds | ||
| ) |
◆ setLoop()
| Result< void > eve::audio_editing::AudioAuditionTransport::setLoop | ( | Revision | expectedRevision, |
| bool | enabled, | ||
| double | startSeconds = 0.0, |
||
| double | endSeconds = 0.0 |
||
| ) |
Configure a bounded loop range; zero end uses the clip duration.
在文件 AudioTransport.cpp 第 33 行定义.
引用了 duration, eve::audio_editing::IAudioTransportBackend::duration(), enabled, end, eve::audio_editing::IAudioTransportBackend::setNativeLooping(), start , 以及 valid.
◆ snapshot()
| Result< AudioTransportSnapshot > eve::audio_editing::AudioAuditionTransport::snapshot | ( | Revision | expectedRevision | ) | const |
Read the current playhead only for the bound source revision.
在文件 AudioTransport.cpp 第 98 行定义.
引用了 valid.
被这些函数引用 eve::audio_editor::AudioSourceEditor::AudioSourceEditor(), eve::audio_editor::AudioSourceEditor::pause(), eve::audio_editor::AudioSourceEditor::play(), eve::audio_editor::AudioSourceEditor::seekSeconds() , 以及 eve::audio_editor::AudioSourceEditor::stop().
◆ stop()
| Result< void > eve::audio_editing::AudioAuditionTransport::stop | ( | Revision | expectedRevision | ) |
Stops .
在文件 AudioTransport.cpp 第 69 行定义.
引用了 eve::editing::noOp(), eve::audio_editing::IAudioTransportBackend::stop(), eve::audio_editing::Stopped , 以及 valid.
◆ unbind()
| void eve::audio_editing::AudioAuditionTransport::unbind | ( | ) |
Stop and forget the borrowed backend.
在文件 AudioTransport.cpp 第 125 行定义.
引用了 eve::audio_editing::IAudioTransportBackend::stop() , 以及 eve::audio_editing::Stopped.
被这些函数引用 eve::audio_editor::AudioSourceEditor::attachLiveAudition(), bind(), update() , 以及 eve::audio_editor::AudioSourceEditor::~AudioSourceEditor().
◆ update()
| Result< AudioTransportSnapshot > eve::audio_editing::AudioAuditionTransport::update | ( | Revision | expectedRevision | ) |
Poll backend state and wrap the custom loop without changing documents.
在文件 AudioTransport.cpp 第 105 行定义.
引用了 eve::audio_editing::IAudioTransportBackend::duration(), eve::audio_editing::IAudioTransportBackend::play(), eve::audio_editing::Playing, eve::audio_editing::IAudioTransportBackend::playing(), eve::audio_editing::IAudioTransportBackend::seek(), status, eve::audio_editing::Stopped, eve::audio_editing::IAudioTransportBackend::tell(), unbind() , 以及 valid.
该类的文档由以下文件生成:
- src/modules/audio/editing/AudioTransport.h
- src/modules/audio/editing/AudioTransport.cpp