Skip to content

Commit f3e3579

Browse files
committed
AudioEffect compile warning
1 parent 20e6904 commit f3e3579

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/AudioEffects/AudioEffect.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ typedef int16_t effect_t;
1616

1717
class AudioEffect {
1818
public:
19+
AudioEffect() = default;
20+
virtual ~AudioEffect() = default;
21+
1922
/// calculates the effect output from the input
2023
virtual effect_t process(effect_t in) = 0;
2124

@@ -361,7 +364,7 @@ class ADSRGain : public AudioEffect {
361364
copyParent((AudioEffect *)&ref);
362365
};
363366

364-
~ADSRGain(){
367+
virtual ~ADSRGain(){
365368
delete adsr;
366369
}
367370

0 commit comments

Comments
 (0)