Remove now-unnecessary is_opl3sa AD1848 mixer hack
This commit is contained in:
@@ -70,7 +70,6 @@ typedef struct ad1848_t {
|
||||
uint64_t timer_latch;
|
||||
|
||||
pc_timer_t cs4231a_irq_timer;
|
||||
uint8_t is_opl3sa;
|
||||
|
||||
int16_t buffer[SOUNDBUFLEN * 2];
|
||||
int pos;
|
||||
@@ -91,7 +90,6 @@ extern void ad1848_update(ad1848_t *ad1848);
|
||||
extern void ad1848_speed_changed(ad1848_t *ad1848);
|
||||
extern void ad1848_filter_cd_audio(int channel, double *buffer, void *priv);
|
||||
extern void ad1848_filter_aux2(void* priv, double* out_l, double* out_r);
|
||||
extern void ad1848_is_opl3sa(ad1848_t *ad1848);
|
||||
|
||||
extern void ad1848_init(ad1848_t *ad1848, uint8_t type);
|
||||
|
||||
|
||||
@@ -76,12 +76,6 @@ ad1848_setdma(ad1848_t *ad1848, int newdma)
|
||||
ad1848->dma = newdma;
|
||||
}
|
||||
|
||||
void
|
||||
ad1848_is_opl3sa(ad1848_t *ad1848)
|
||||
{
|
||||
ad1848->is_opl3sa = 1;
|
||||
}
|
||||
|
||||
void
|
||||
ad1848_updatevolmask(ad1848_t *ad1848)
|
||||
{
|
||||
@@ -524,8 +518,6 @@ readonly_x:
|
||||
ad1848_updatefreq(ad1848);
|
||||
|
||||
temp = (ad1848->type < AD1848_TYPE_CS4231) ? 2 : ((ad1848->type == AD1848_TYPE_CS4231) ? 18 : 4);
|
||||
if (ad1848->is_opl3sa)
|
||||
temp = 2; /* OPL3-SA CODEC is CS4231-based but uses Aux1 for CD audio */
|
||||
if (ad1848->regs[temp] & 0x80)
|
||||
ad1848->cd_vol_l = 0;
|
||||
else
|
||||
|
||||
@@ -447,7 +447,6 @@ ymf701_init(const device_t *info)
|
||||
|
||||
sound_add_handler(ymf701_get_buffer, ymf701);
|
||||
music_add_handler(sb_get_music_buffer_sbpro, ymf701->sb);
|
||||
ad1848_is_opl3sa(&ymf701->ad1848);
|
||||
//sound_set_cd_audio_filter(sbpro_filter_cd_audio, ymf701->sb); /* CD audio filter for the default context */
|
||||
sound_set_cd_audio_filter(ad1848_filter_cd_audio, &ymf701->ad1848);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user