]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Update by Uros
authorJaroslav Kysela <perex@perex.cz>
Thu, 18 Jan 2001 08:35:57 +0000 (08:35 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 18 Jan 2001 08:35:57 +0000 (08:35 +0000)
src/instr/fm.c

index e012158e2428262fd50182900b16c3328c2ad16c..4ce40df60ddc37bb1eceb8b6ed596b4d6dca4d6b 100644 (file)
@@ -61,7 +61,7 @@ int snd_instr_fm_convert_to_stream(snd_instr_fm_t *fm,
        if (name)
                strncpy(data->name, name, sizeof(data->name)-1);
        data->type = SND_SEQ_INSTR_ATYPE_DATA;
-       strcpy(data->data.format, SND_SEQ_INSTR_ID_OPL3);
+       strcpy(data->data.format, SND_SEQ_INSTR_ID_OPL2_3);
        /* build data section */
        xinstr = (fm_xinstrument_t *)(data + 1);
        xinstr->stype = FM_STRU_INSTR;
@@ -69,6 +69,7 @@ int snd_instr_fm_convert_to_stream(snd_instr_fm_t *fm,
        xinstr->share_id[1] = __cpu_to_le32(instr->share_id[1]);
        xinstr->share_id[2] = __cpu_to_le32(instr->share_id[2]);
        xinstr->share_id[3] = __cpu_to_le32(instr->share_id[3]);
+       xinstr->type = instr->type;
        for (idx = 0; idx < 4; idx++) {
                xinstr->op[idx].am_vib = instr->op[idx].am_vib;
                xinstr->op[idx].ksl_level = instr->op[idx].ksl_level;