小编Jac*_*cob的帖子

不能在函数 C++ 中使用覆盖

所以我一直在尝试使用 JUCE 处理音频并遵循教程,他在其中使用了一个函数的覆盖,但是当我这样做时,它说“函数声明符之后的预期函数体”。目标是播放视频中解释的随机白噪声。

视频链接:https : //www.youtube.com/watch?v=GjNeYI6-uNE&index=11&list=PLLgJJsrdwhPxa6-02-CeHW8ocwSwl2jnu

代码:

/*
  ==============================================================================

    This file was auto-generated!

  ==============================================================================
*/

#include "MainComponent.h"

//==============================================================================
MainComponent::MainComponent()
{
    // Make sure you set the size of the component after
    // you add any child components.
    setSize (800, 600);

    // specify the number of input and output channels that we want to open
    setAudioChannels (2, 2);
}

MainComponent::~MainComponent()
{
    // This shuts down the audio device and clears the audio source.
    shutdownAudio();
}

//==============================================================================
void MainComponent::prepareToPlay (int samplesPerBlockExpected, …
Run Code Online (Sandbox Code Playgroud)

c++ audio function juce

0
推荐指数
1
解决办法
1158
查看次数

标签 统计

audio ×1

c++ ×1

function ×1

juce ×1