History

first cut at codec plugins

Brad Hefta-Gaub committed 10 years ago

Commit be379211 parent 647714212 files · +224 −7Browse files

Showing the changes to plugins/pcmCodec/src/PCMCodecManager.cpp (1 of 12 files). Show all

Unified · Split

plugins/pcmCodec/src/PCMCodecManager.cpp+45−0
@@ -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
18const QString PCMCodecManager::NAME = "PCM Codec";
19
20void PCMCodecManager::init() {
21}
22
23void PCMCodecManager::deinit() {
24}
25
26bool PCMCodecManager::activate() {
27 CodecPlugin::activate();
28 return true;
29}
30
31void PCMCodecManager::deactivate() {
32 CodecPlugin::deactivate();
33}
34
35
36bool PCMCodecManager::isSupported() const {
37 return true;
38}
39
40
41void PCMCodecManager::decode(const QByteArray& encodedBuffer, QByteArray& decodedBuffer) {
42 // this codec doesn't actually do anything....
43 decodedBuffer = encodedBuffer;
44}
45

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t