FourTrackPlayer plays back four motion streams from an SD card file.
More...
#include <recording.hpp>
|
|
void | begin () |
| | Initializes the FourTrackPlayer. Must be called before using the player.
|
| void | start (const char *recording_name="recording") |
| | Starts playback of a recording with the specified name.
|
|
void | pause () |
| | Pauses the current playback.
|
|
void | resume () |
| | Resumes a paused playback.
|
|
void | stop () |
| | Stops the current playback.
|
| void | set_resolution (float output_units, float per_steps=1.0) |
| | Sets the resolution for playback in world units per step.
|
|
|
BlockPort & | output_1 = output_BlockPorts[0] |
| | Output BlockPort for the first playback channel. Map downstream components to this port.
|
|
BlockPort & | output_2 = output_BlockPorts[1] |
| | Output BlockPort for the second playback channel. Map downstream components to this port.
|
|
BlockPort & | output_3 = output_BlockPorts[2] |
| | Output BlockPort for the third playback channel. Map downstream components to this port.
|
|
BlockPort & | output_4 = output_BlockPorts[3] |
| | Output BlockPort for the fourth playback channel. Map downstream components to this port.
|
|
volatile long | current_sample_index = 0 |
| | Current sample index in the playback.
|
|
long | max_num_playback_samples = 0 |
| | Maximum number of samples in the playback.
|
|
volatile bool | playback_active = false |
| | Indicates whether the player is currently active.
|
FourTrackPlayer plays back four motion streams from an SD card file.
The FourTrackPlayer class allows simultaneous playback of four motion streams from a recorded SD card file. Each track can be mapped to a BlockPort for output. The player supports starting, pausing, resuming, and stopping playback, as well as setting the resolution for playback. It reads recorded data stored in a binary format on the SD card for efficient retrieval. It is typically used in conjunction with the FourTrackRecorder class for recording motion streams. Here's an example of how to instantiate and configure a FourTrackPlayer: AxiDraw Recorder Example.
◆ set_resolution()
| void FourTrackPlayer::set_resolution |
( |
float | output_units, |
|
|
float | per_steps = 1.0 ) |
Sets the resolution for playback in world units per step.
- Parameters
-
| output_units | World units corresponding to one step. |
| per_steps | Number of steps. Default is 1.0. |
◆ start()
| void FourTrackPlayer::start |
( |
const char * | recording_name = "recording" | ) |
|
Starts playback of a recording with the specified name.
- Parameters
-
| recording_name | Name of the recording file to play back. This should match the name used during recording. |
The documentation for this class was generated from the following file: