2026-02-01 02:54:05 +01:00
|
|
|
//
|
|
|
|
|
// Created by david on 01.02.2026.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef LOCKSTEP_PLAYBACKENGINE_H
|
|
|
|
|
#define LOCKSTEP_PLAYBACKENGINE_H
|
|
|
|
|
|
2026-03-04 01:31:35 +01:00
|
|
|
#include "StepListener.h"
|
2026-03-03 14:19:56 +01:00
|
|
|
#include "MixingPlayer.h"
|
2026-03-03 12:04:17 +01:00
|
|
|
#include <string>
|
2026-02-01 02:54:05 +01:00
|
|
|
|
2026-03-04 01:31:35 +01:00
|
|
|
class PlaybackEngine : public StepListener {
|
2026-02-01 02:54:05 +01:00
|
|
|
public:
|
2026-03-03 14:19:56 +01:00
|
|
|
PlaybackEngine(std::string filesDir, int resid);
|
2026-02-01 02:54:05 +01:00
|
|
|
virtual ~PlaybackEngine();
|
2026-03-04 01:31:35 +01:00
|
|
|
/** Play a beat sound. */
|
|
|
|
|
virtual void playBeat();
|
2026-02-01 02:54:05 +01:00
|
|
|
private:
|
2026-03-03 14:19:56 +01:00
|
|
|
MixingPlayer *mPlayer;
|
2026-03-03 12:04:17 +01:00
|
|
|
std::string mFilesDir;
|
2026-02-01 02:54:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //LOCKSTEP_PLAYBACKENGINE_H
|