Many changes were made throughout the codebase to support audio, these are most of the small changes necessary. The audio support still is not perfect. I still need to write in resampling support. After that it should work correctly with all audio types.
26 lines
447 B
C++
26 lines
447 B
C++
#ifndef AUDIOINPUT_H
|
|
#define AUDIOINPUT_H
|
|
|
|
#include "../media.h"
|
|
|
|
class AudioInput : public MediaInput
|
|
{
|
|
public:
|
|
AudioInput();
|
|
|
|
virtual QString Name() override;
|
|
virtual QString id() override;
|
|
virtual QString Category() override;
|
|
virtual QString Description() override;
|
|
|
|
NodeOutput* samples_output();
|
|
|
|
protected:
|
|
virtual QVariant Value(NodeOutput* output) override;
|
|
|
|
private:
|
|
NodeOutput* samples_output_;
|
|
};
|
|
|
|
#endif // AUDIOINPUT_H
|