We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036c93f commit 2879ba4Copy full SHA for 2879ba4
src/AudioTools/AudioCodecs/CodecCopy.h
@@ -79,11 +79,16 @@ class CopyEncoder : public AudioEncoder {
79
80
operator bool() { return true; }
81
82
- const char *mime() {return "audio/pcm";}
+ /// Provides the mime type of the encoded data
83
+ const char *mime() {return mime_type;}
84
+
85
+ /// Defines the mime type
86
+ void setMime(const char *mime) { mime_type = mime; }
87
88
89
protected:
90
Print *pt_print=nullptr;
91
+ const char *mime_type = "audio/pcm";
92
};
93
94
using PCMEncoder = CopyEncoder;
0 commit comments