mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-06-26 00:29:27 +00:00
693b9d31bf
* In preparation for adding mockingboard support * NOTE: ALSA still has a hardcoded 1 buffer assumption with its use of mmapped access
46 lines
899 B
C
46 lines
899 B
C
/*
|
|
* Apple // emulator for Linux
|
|
*
|
|
* This software package is subject to the GNU General Public License
|
|
* version 2 or later (your choice) as published by the Free Software
|
|
* Foundation.
|
|
*
|
|
* THERE ARE NO WARRANTIES WHATSOEVER.
|
|
*
|
|
*/
|
|
|
|
#ifndef _SOUNDCORE_ALSA_H_
|
|
#define _SOUNDCORE_ALSA_H_
|
|
|
|
#include "common.h"
|
|
#include "soundcore.h"
|
|
#include <alsa/asoundlib.h>
|
|
|
|
#undef DSBVOLUME_MIN
|
|
#define DSBVOLUME_MIN 0
|
|
|
|
#undef DSBVOLUME_MAX
|
|
#define DSBVOLUME_MAX 100
|
|
|
|
typedef struct IDirectSoundBuffer ALSASoundBufferStruct;
|
|
|
|
typedef struct DSBUFFERDESC ALSABufferParamsStruct;
|
|
|
|
typedef struct {
|
|
snd_pcm_t *handle;
|
|
snd_pcm_hw_params_t *hwparams;
|
|
snd_pcm_sw_params_t *swparams;
|
|
|
|
snd_pcm_format_t format;
|
|
int format_bits;
|
|
int bytes_per_sample;
|
|
int shift_per_sample;
|
|
|
|
snd_pcm_uframes_t buffer_size;
|
|
snd_pcm_uframes_t period_size;
|
|
|
|
} ALSAExtras;
|
|
|
|
#endif /* whole file */
|
|
|