Skip to content

Commit 2879ba4

Browse files
committed
CopyEncoder: setMime()
1 parent 036c93f commit 2879ba4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/AudioTools/AudioCodecs/CodecCopy.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,16 @@ class CopyEncoder : public AudioEncoder {
7979

8080
operator bool() { return true; }
8181

82-
const char *mime() {return "audio/pcm";}
82+
/// 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; }
8387

8488

8589
protected:
8690
Print *pt_print=nullptr;
91+
const char *mime_type = "audio/pcm";
8792
};
8893

8994
using PCMEncoder = CopyEncoder;

0 commit comments

Comments
 (0)