aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/null_input.h
blob: 00dacf5bdbf4911494f48e3181838a6cfb81f32b (plain) (blame)
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
35
36
37
38
39
40
// Copyright 2019 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include <memory>
#include <vector>
#include "audio_core/input.h"
#include "common/swap.h"
#include "common/threadsafe_queue.h"

namespace AudioCore {

class NullInput final : public Input {
public:
    void StartSampling(const InputParameters& params) override {
        parameters = params;
        is_sampling = true;
    }

    void StopSampling() override {
        is_sampling = false;
    }

    bool IsSampling() override {
        return is_sampling;
    }

    void AdjustSampleRate(u32 sample_rate) override {}

    Samples Read() override {
        return {};
    }

private:
    bool is_sampling = false;
};

} // namespace AudioCore