Changes to device_t struct to accomodate the upcoming PCI IRQ arbitration rewrite; Added device.c/h API to obtain name from the device_t struct; Significant changes to win/win_settings.c to clean up the code a bit and fix bugs; Ported all the CPU and AudioPCI commits from PCem; Added an API call to allow ACPI soft power off to gracefully stop the emulator; Removed the Siemens PCD-2L from the Dev branch because it now works; Removed the Socket 5 HP Vectra from the Dev branch because it now works; Fixed the Compaq Presario and the Micronics Spitfire; Give the IBM PC330 its own list of 486 CPU so it can have DX2's with CPUID 0x470; SMM fixes; Rewrote the SYSENTER, SYSEXIT, SYSCALL, and SYSRET instructions; Changed IDE reset period to match the specification, fixes #929; The keyboard input and output ports are now forced in front of the queue when read, fixes a number of bugs, including the AMI Apollo hanging on soft reset; Added the Intel AN430TX but Dev branched because it does not work; The network code no longer drops packets if the emulated network card has failed to receive them (eg. when the buffer is full); Changes to PCI card adding and renamed some PCI slot types, also added proper AGP bridge slot types; USB UHCI emulation is no longer a stub (still doesn't fully work, but at least Windows XP chk with Debug no longer ASSERT's on it); Fixed NVR on the the SMC FDC37C932QF and APM variants; A number of fixes to Intel 4x0 chipsets, including fixing every register of the 440LX and 440EX; Some ACPI changes.
125 lines
3.0 KiB
C
125 lines
3.0 KiB
C
/*
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
* running old operating systems and software designed for IBM
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
* system designs based on the PCI bus.
|
|
*
|
|
* This file is part of the 86Box distribution.
|
|
*
|
|
* Sound emulation core.
|
|
*
|
|
*
|
|
*
|
|
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
|
* Miran Grca, <mgrca8@gmail.com>
|
|
*
|
|
* Copyright 2008-2018 Sarah Walker.
|
|
* Copyright 2016-2018 Miran Grca.
|
|
*/
|
|
#ifndef EMU_SOUND_H
|
|
# define EMU_SOUND_H
|
|
|
|
|
|
extern int sound_gain;
|
|
|
|
#define SOUNDBUFLEN (48000/50)
|
|
|
|
#define CD_FREQ 44100
|
|
#define CD_BUFLEN (CD_FREQ / 10)
|
|
|
|
|
|
enum {
|
|
SOUND_NONE = 0,
|
|
SOUND_INTERNAL
|
|
};
|
|
|
|
|
|
extern int ppispeakon;
|
|
extern int gated,
|
|
speakval,
|
|
speakon;
|
|
|
|
extern int sound_pos_global;
|
|
extern int sound_card_current;
|
|
|
|
|
|
extern void sound_add_handler(void (*get_buffer)(int32_t *buffer, \
|
|
int len, void *p), void *p);
|
|
extern void sound_set_cd_audio_filter(void (*filter)(int channel, \
|
|
double *buffer, void *p), void *p);
|
|
|
|
extern int sound_card_available(int card);
|
|
#ifdef EMU_DEVICE_H
|
|
extern const device_t *sound_card_getdevice(int card);
|
|
#endif
|
|
extern int sound_card_has_config(int card);
|
|
extern char *sound_card_get_internal_name(int card);
|
|
extern int sound_card_get_from_internal_name(char *s);
|
|
extern void sound_card_init(void);
|
|
extern void sound_set_cd_volume(unsigned int vol_l, unsigned int vol_r);
|
|
|
|
extern void sound_speed_changed(void);
|
|
|
|
extern void sound_init(void);
|
|
extern void sound_reset(void);
|
|
|
|
extern void sound_card_reset(void);
|
|
|
|
extern void sound_cd_thread_end(void);
|
|
extern void sound_cd_thread_reset(void);
|
|
|
|
extern void closeal(void);
|
|
extern void inital(void);
|
|
extern void givealbuffer(void *buf);
|
|
extern void givealbuffer_cd(void *buf);
|
|
|
|
|
|
#ifdef EMU_DEVICE_H
|
|
/* AdLib and AdLib Gold */
|
|
extern const device_t adlib_device;
|
|
extern const device_t adlib_mca_device;
|
|
extern const device_t adgold_device;
|
|
|
|
/* Aztech Sound Galaxy 16 */
|
|
extern const device_t azt2316a_device;
|
|
extern const device_t azt1605_device;
|
|
|
|
/* Ensoniq AudioPCI */
|
|
extern const device_t es1371_device;
|
|
extern const device_t es1371_onboard_device;
|
|
|
|
/* Creative Labs Game Blaster */
|
|
extern const device_t cms_device;
|
|
|
|
/* Gravis UltraSound and UltraSound Max */
|
|
extern const device_t gus_device;
|
|
|
|
#if defined(DEV_BRANCH) && defined(USE_PAS16)
|
|
/* Pro Audio Spectrum 16 */
|
|
extern const device_t pas16_device;
|
|
#endif
|
|
|
|
/* PSSJ - What is this device? */
|
|
extern const device_t pssj_device;
|
|
|
|
/* Creative Labs Sound Blaster */
|
|
extern const device_t sb_1_device;
|
|
extern const device_t sb_15_device;
|
|
extern const device_t sb_mcv_device;
|
|
extern const device_t sb_2_device;
|
|
extern const device_t sb_pro_v1_device;
|
|
extern const device_t sb_pro_v2_device;
|
|
extern const device_t sb_pro_mcv_device;
|
|
extern const device_t sb_16_device;
|
|
extern const device_t sb_awe32_device;
|
|
|
|
/* Innovation SSI-2001 */
|
|
extern const device_t ssi2001_device;
|
|
|
|
/* Windows Sound System */
|
|
extern const device_t wss_device;
|
|
extern const device_t ncr_business_audio_device;
|
|
#endif
|
|
|
|
#endif /*EMU_SOUND_H*/
|