Evoral::Event show event address in operator<<

This commit is contained in:
Paul Davis 2025-11-24 21:35:45 -07:00
parent c2c411a982
commit 0459902b9a

View file

@ -221,10 +221,10 @@ protected:
template<typename Time> template<typename Time>
/*LIBEVORAL_API*/ std::ostream& operator<<(std::ostream& o, const Evoral::Event<Time>& ev) { /*LIBEVORAL_API*/ std::ostream& operator<<(std::ostream& o, const Evoral::Event<Time>& ev) {
o << "Event #" << ev.id() << " type = " << ev.event_type() << " @ " << ev.time(); o << "Event #" << ev.id() << " @" << &ev << " type = " << ev.event_type() << " @ " << ev.time();
o << std::hex; o << std::hex;
for (uint32_t n = 0; n < ev.size(); ++n) { for (uint32_t n = 0; n < ev.size(); ++n) {
o << ' ' << (int) ev.buffer()[n]; o << " 0x " << (int) ev.buffer()[n];
} }
o << std::dec; o << std::dec;
return o; return o;