Gerd Hoffmann <kra...@redhat.com> writes: > From: Pavel Dovgalyuk <pavel.dovga...@ispras.ru> > > This patch adds recording and replaying audio data. Is saves synchronization > information for audio out and inputs from the microphone. > > v2: removed unneeded whitespace change > > Signed-off-by: Pavel Dovgalyuk <pavel.dovga...@ispras.ru> > Message-id: 20170202055054.4848.94901.st...@pasha-isp.lan02.inno > > [ kraxel: add qemu/error-report.h include to fix osx build failure ] > > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > --- > audio/audio.c | 9 ++++-- > audio/audio.h | 5 +++ > audio/mixeng.c | 32 ++++++++++++++++++++ > docs/replay.txt | 7 +++++ > include/sysemu/replay.h | 7 +++++ > replay/Makefile.objs | 1 + > replay/replay-audio.c | 79 > ++++++++++++++++++++++++++++++++++++++++++++++++ > replay/replay-internal.h | 4 +++ > 8 files changed, 142 insertions(+), 2 deletions(-) > create mode 100644 replay/replay-audio.c > <snip> > diff --git a/replay/replay-internal.h b/replay/replay-internal.h > index c26d079..ed66ed8 100644 > --- a/replay/replay-internal.h > +++ b/replay/replay-internal.h > @@ -29,6 +29,10 @@ enum ReplayEvents { > /* for character device read all event */ > EVENT_CHAR_READ_ALL, > EVENT_CHAR_READ_ALL_ERROR, > + /* for audio out event */ > + EVENT_AUDIO_OUT, > + /* for audio in event */ > + EVENT_AUDIO_IN, > /* for clock read/writes */ > /* some of greater codes are reserved for clocks */ > EVENT_CLOCK,
Well one thing I noticed while I was trying to work out the difference between pre/post mttcg replay problems is the log format ABI has changed. REPLAY_VERSION needs to be bumped to prevent confusion. -- Alex Bennée