-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsoundblocks.h
More file actions
34 lines (26 loc) · 1.07 KB
/
soundblocks.h
File metadata and controls
34 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <scratchcpp/iextension.h>
namespace libscratchcpp
{
class IAudioOutput;
class SoundBlocks : public IExtension
{
public:
std::string name() const override;
std::string description() const override;
Rgb color() const override;
void registerBlocks(IEngine *engine) override;
void onInit(IEngine *engine) override;
private:
static CompilerValue *compilePlay(Compiler *compiler);
static CompilerValue *compilePlayUntilDone(Compiler *compiler);
static CompilerValue *compileStopAllSounds(Compiler *compiler);
static CompilerValue *compileSetEffectTo(Compiler *compiler);
static CompilerValue *compileChangeEffectBy(Compiler *compiler);
static CompilerValue *compileClearEffects(Compiler *compiler);
static CompilerValue *compileChangeVolumeBy(Compiler *compiler);
static CompilerValue *compileSetVolumeTo(Compiler *compiler);
static CompilerValue *compileVolume(Compiler *compiler);
};
} // namespace libscratchcpp