File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 8
8
namespace audio_tools {
9
9
10
10
/* *
11
- * @brief Dummy Decoder which just copies the provided data to the output
11
+ * @brief Dummy Decoder which just copies the provided data to the output.
12
+ * You can define if it is PCM data.
12
13
* @ingroup codecs
13
14
* @ingroup decoder
14
15
* @author Phil Schatzmann
15
16
* @copyright GPLv3
16
17
*/
17
18
class CopyDecoder : public AudioDecoder {
18
19
public:
19
- CopyDecoder () { TRACED (); }
20
20
21
- CopyDecoder (bool isPcm){
21
+ CopyDecoder (bool isPcm = false ){
22
22
is_pcm = isPcm;
23
23
}
24
24
@@ -41,9 +41,12 @@ class CopyDecoder : public AudioDecoder {
41
41
42
42
operator bool () { return true ; }
43
43
44
- // The result is encoded data
44
+ // / The result is encoded data - by default this is false
45
45
virtual bool isResultPCM () { return is_pcm;}
46
46
47
+ // / Defines that the source and therefor the result is also PCM data
48
+ void setResultPCM (bool pcm){ is_pcm = pcm;}
49
+
47
50
protected:
48
51
Print *pt_print=nullptr ;
49
52
bool is_pcm = false ;
You can’t perform that action at this time.
0 commit comments