We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f877e9c commit f65eb7cCopy full SHA for f65eb7c
1 file changed
src/lib/AVCodec/Channel.h
@@ -8,6 +8,8 @@
8
9
#include "common/EnumMapper.h"
10
11
+#include <ostream>
12
+
13
namespace libffmpeg::avcodec
14
{
15
@@ -103,6 +105,16 @@ struct ChannelInfo
103
105
return this->channel == other.channel && this->ambisonicIndex == other.ambisonicIndex &&
104
106
this->name == other.name;
107
}
108
109
+ friend std::ostream &operator<<(std::ostream &stream, const ChannelInfo &channelInfo)
110
+ {
111
+ stream << "{ Channel "
112
+ << (channelInfo.channel ? channelMapper.getName(*channelInfo.channel) : "nullopt")
113
+ << ", ambisonicIndex: "
114
+ << (channelInfo.ambisonicIndex ? std::to_string(*channelInfo.ambisonicIndex) : "nullopt")
115
+ << ", name: \"" << channelInfo.name << "\"}";
116
+ return stream;
117
+ }
118
};
119
120
using ChannelLayout = std::vector<ChannelInfo>;
0 commit comments