Objects from the class wxMediaBuffer cannot be created directly. Instead, create an object from wxMediaEdit or wxMediaPasteboard.