Diff for /np2/sound/cs4231c.c between versions 1.10 and 1.11

version 1.10, 2005/04/08 19:39:09 version 1.11, 2011/01/15 18:04:43
Line 169  static void setdataalign(void) { Line 169  static void setdataalign(void) {
         cs4231.bufdatas &= ~3;          cs4231.bufdatas &= ~3;
 }  }
   
 void cs4231_control(UINT index, REG8 dat) {  void cs4231_control(UINT idx, REG8 dat) {
   
         UINT8   modify;          UINT8   modify;
         DMACH   dmach;          DMACH   dmach;
   
         modify = ((UINT8 *)&cs4231.reg)[index] ^ dat;          modify = ((UINT8 *)&cs4231.reg)[idx] ^ dat;
         ((UINT8 *)&cs4231.reg)[index] = dat;          ((UINT8 *)&cs4231.reg)[idx] = dat;
         switch(index) {          switch(idx) {
                 case CS4231REG_PLAYFMT:                  case CS4231REG_PLAYFMT:
                         if (modify & 0xf0) {                          if (modify & 0xf0) {
                                 setdataalign();                                  setdataalign();

Removed from v.1.10  
changed lines
  Added in v.1.11


RetroPC.NET-CVS <cvs@retropc.net>