aboutsummaryrefslogtreecommitdiff
path: root/audio/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audio.c')
-rw-r--r--audio/audio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/audio/audio.c b/audio/audio.c
index 534278e..052ca6c 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -32,6 +32,7 @@
#include "qapi/qapi-visit-audio.h"
#include "qemu/cutils.h"
#include "qemu/module.h"
+#include "qemu-common.h"
#include "sysemu/replay.h"
#include "sysemu/runstate.h"
#include "ui/qemu-spice.h"
@@ -2172,6 +2173,14 @@ const char *audio_get_id(QEMUSoundCard *card)
}
}
+const char *audio_application_name(void)
+{
+ const char *vm_name;
+
+ vm_name = qemu_get_vm_name();
+ return vm_name ? vm_name : "qemu";
+}
+
void audio_rate_start(RateCtl *rate)
{
memset(rate, 0, sizeof(RateCtl));