Showing the changes to plugins/pcmCodec/src/PCMCodecManager.cpp (1 of 12 files). Show all
Unified · Split
| @@ -0,0 +1,45 @@ | |||
| 1 | // | ||
| 2 | // PCMCodecManager.cpp | ||
| 3 | // plugins/pcmCodec/src | ||
| 4 | // | ||
| 5 | // Created by Brad Hefta-Gaub on 6/9/2016 | ||
| 6 | // Copyright 2016 High Fidelity, Inc. | ||
| 7 | // | ||
| 8 | // Distributed under the Apache License, Version 2.0. | ||
| 9 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | ||
| 10 | // | ||
| 11 | |||
| 12 | #include <qapplication.h> | ||
| 13 | |||
| 14 | #include <PerfStat.h> | ||
| 15 | |||
| 16 | #include "PCMCodecManager.h" | ||
| 17 | |||
| 18 | const QString PCMCodecManager::NAME = "PCM Codec"; | ||
| 19 | |||
| 20 | void PCMCodecManager::init() { | ||
| 21 | } | ||
| 22 | |||
| 23 | void PCMCodecManager::deinit() { | ||
| 24 | } | ||
| 25 | |||
| 26 | bool PCMCodecManager::activate() { | ||
| 27 | CodecPlugin::activate(); | ||
| 28 | return true; | ||
| 29 | } | ||
| 30 | |||
| 31 | void PCMCodecManager::deactivate() { | ||
| 32 | CodecPlugin::deactivate(); | ||
| 33 | } | ||
| 34 | |||
| 35 | |||
| 36 | bool PCMCodecManager::isSupported() const { | ||
| 37 | return true; | ||
| 38 | } | ||
| 39 | |||
| 40 | |||
| 41 | void PCMCodecManager::decode(const QByteArray& encodedBuffer, QByteArray& decodedBuffer) { | ||
| 42 | // this codec doesn't actually do anything.... | ||
| 43 | decodedBuffer = encodedBuffer; | ||
| 44 | } | ||
| 45 | |||