mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
audio: move code to audio/audio.c
Move the code to generate the pa_context_new() application name argument to a function in audio/audio.c. The new function audio_application_name() will also be used in the jackaudio backend. Signed-off-by: Volker Rümelin <vr_qemu@t-online.de> Message-Id: <20210517194604.2545-3-vr_qemu@t-online.de> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
50db82d84c
commit
37a54d054f
3 changed files with 12 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue