noaudio.c revision f5e53763b0a581b0299e98028c6c52192eb06785
/*
* QEMU Timer based audio emulation
*
* Copyright (c) 2004-2005 Vassili Karpov (malc)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "VBoxDD.h"
#include "vl_vbox.h"
#include "audio.h"
#define AUDIO_CAP "noaudio"
#include "audio_int.h"
typedef struct NoVoiceOut {
} NoVoiceOut;
typedef struct NoVoiceIn {
} NoVoiceIn;
{
if (!live) {
return 0;
}
now = audio_get_clock ();
return decr;
}
{
}
{
return 0;
}
{
(void) hw;
}
{
(void) hw;
(void) cmd;
return 0;
}
{
return 0;
}
{
(void) hw;
}
{
int samples = 0;
if (dead) {
/ audio_get_ticks_per_sec ();
}
return samples;
}
{
}
{
(void) hw;
(void) cmd;
return 0;
}
static void *no_audio_init (void)
{
return &no_audio_driver;
}
static void no_audio_fini (void *opaque)
{
(void) opaque;
}
static struct audio_pcm_ops no_pcm_ops = {
};
struct audio_driver no_audio_driver = {
};