audio.c (6f34661b6c97a37a5efc27d31c037ddeda4547e2) | audio.c (37a54d054f5aac43cb5721c68954b8b76d0db12d) |
---|---|
1/* 2 * QEMU Audio subsystem 3 * 4 * Copyright (c) 2003-2005 Vassili Karpov (malc) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 18 unchanged lines hidden (view full) --- 27#include "migration/vmstate.h" 28#include "monitor/monitor.h" 29#include "qemu/timer.h" 30#include "qapi/error.h" 31#include "qapi/qobject-input-visitor.h" 32#include "qapi/qapi-visit-audio.h" 33#include "qemu/cutils.h" 34#include "qemu/module.h" | 1/* 2 * QEMU Audio subsystem 3 * 4 * Copyright (c) 2003-2005 Vassili Karpov (malc) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 18 unchanged lines hidden (view full) --- 27#include "migration/vmstate.h" 28#include "monitor/monitor.h" 29#include "qemu/timer.h" 30#include "qapi/error.h" 31#include "qapi/qobject-input-visitor.h" 32#include "qapi/qapi-visit-audio.h" 33#include "qemu/cutils.h" 34#include "qemu/module.h" |
35#include "qemu-common.h" |
|
35#include "sysemu/replay.h" 36#include "sysemu/runstate.h" 37#include "ui/qemu-spice.h" 38#include "trace.h" 39 40#define AUDIO_CAP "audio" 41#include "audio_int.h" 42 --- 2124 unchanged lines hidden (view full) --- 2167 if (card->state) { 2168 assert(card->state->dev); 2169 return card->state->dev->id; 2170 } else { 2171 return ""; 2172 } 2173} 2174 | 36#include "sysemu/replay.h" 37#include "sysemu/runstate.h" 38#include "ui/qemu-spice.h" 39#include "trace.h" 40 41#define AUDIO_CAP "audio" 42#include "audio_int.h" 43 --- 2124 unchanged lines hidden (view full) --- 2168 if (card->state) { 2169 assert(card->state->dev); 2170 return card->state->dev->id; 2171 } else { 2172 return ""; 2173 } 2174} 2175 |
2176const char *audio_application_name(void) 2177{ 2178 const char *vm_name; 2179 2180 vm_name = qemu_get_vm_name(); 2181 return vm_name ? vm_name : "qemu"; 2182} 2183 |
|
2175void audio_rate_start(RateCtl *rate) 2176{ 2177 memset(rate, 0, sizeof(RateCtl)); 2178 rate->start_ticks = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); 2179} 2180 2181size_t audio_rate_get_bytes(struct audio_pcm_info *info, RateCtl *rate, 2182 size_t bytes_avail) --- 21 unchanged lines hidden --- | 2184void audio_rate_start(RateCtl *rate) 2185{ 2186 memset(rate, 0, sizeof(RateCtl)); 2187 rate->start_ticks = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); 2188} 2189 2190size_t audio_rate_get_bytes(struct audio_pcm_info *info, RateCtl *rate, 2191 size_t bytes_avail) --- 21 unchanged lines hidden --- |