CD-ROM CUE indexes are now respected for skip even if prestart is 0 (fixes CUE+BIN images that use indexes for pregap), CD Audio attenuation is now done per the specification, and proper sound card filtering and volume calculation now applies to CD Audio.

This commit is contained in:
OBattler
2020-10-19 01:02:40 +02:00
parent a5e9e50ffc
commit 26d42adb1e
7 changed files with 155 additions and 46 deletions

View File

@@ -14,7 +14,9 @@ typedef struct ad1848_t
int count;
int16_t out_l, out_r;
uint32_t cd_vol_l, cd_vol_r;
int enable;
int irq, dma;

View File

@@ -45,6 +45,8 @@ 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, \
float *buffer, void *p), void *p);
extern int sound_card_available(int card);
extern char *sound_card_getname(int card);