Ignore:
Timestamp:
Jul 17, 2000, 8:37:33 PM (25 years ago)
Author:
sandervl
Message:

misc updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sbliveos2/trunk/sblive/cardwo.c

    r142 r152  
    518518        /* Save the stop position */
    519519        emu10k1_voice_getcontrol(wave_out->voice, CCCA_CURRADDR, &wavexferbuf->stopposition);
    520 
    521520        wavexferbuf->stopposition -= wave_out->voice->params.start;
     521#ifdef TARGET_OS2
     522        wavexferbuf->stopposition &= CCCA_CURRADDR_MASK; //SvL: mask off CCCA_8BITSELECT
     523#endif
    522524
    523525        /* Refer to voicemgr.c, CA is not started at zero.  We need to take this into account. */
     
    721723
    722724                emu10k1_voice_getcontrol(wave_out->voice, CCCA_CURRADDR, &curpos);
    723 
    724725                curpos -= wave_out->voice->params.start;
     726#ifdef TARGET_OS2
     727                curpos &= CCCA_CURRADDR_MASK; //SvL: mask off CCCA_8BITSELECT
     728#endif
    725729
    726730                /* Get number of bytes in play buffer per channel.
Note: See TracChangeset for help on using the changeset viewer.