Previous 199869 Revisions Next

r32715 Monday 13th October, 2014 at 23:53:01 UTC by Alex Jackson
Shouldn't use bool for save stated variables anyway; representation can vary between compilers and platforms (nw)
[src/emu/sound]k053260.c k053260.h

trunk/src/emu/sound/k053260.c
r32714r32715
318318   m_position = 0;
319319   m_counter = 0;
320320   m_output = 0;
321   m_playing = false;
321   m_playing = 0;
322322   m_start = 0;
323323   m_length = 0;
324324   m_pitch = 0;
325325   m_volume = 0;
326326   m_pan = 0;
327   m_loop = false;
327   m_loop = 0;
328328   m_kadpcm = 0;
329329   update_pan_volume();
330330}
r32714r32715
392392      m_position = m_kadpcm; // for kadpcm low bit is nybble offset, so must start at 1 due to preincrement
393393      m_counter = 0x1000 - CLOCKS_PER_SAMPLE; // force update on next sound_stream_update
394394      m_output = 0;
395      m_playing = true;
395      m_playing = 1;
396396      if (LOG) logerror("K053260: start = %06x, length = %06x, pitch = %04x, vol = %02x, loop = %s, %s\n",
397397                  m_start, m_length, m_pitch, m_volume, m_loop ? "yes" : "no", m_kadpcm ? "KADPCM" : "PCM" );
398398   }
r32714r32715
402402{
403403   m_position = 0;
404404   m_output = 0;
405   m_playing = false;
405   m_playing = 0;
406406}
407407
408408void k053260_device::KDSC_Voice::play(stream_sample_t *outputs)
r32714r32715
432432         }
433433         else
434434         {
435            m_playing = false;
435            m_playing = 0;
436436            return;
437437         }
438438      }
trunk/src/emu/sound/k053260.h
r32714r32715
8989      UINT16 m_pan_volume[2];
9090      UINT16 m_counter;
9191      INT8   m_output;
92      bool   m_playing;
92      UINT8  m_playing;
9393
9494      // per voice registers
9595      UINT32 m_start;
r32714r32715
9999
100100      // bit packed registers
101101      UINT8  m_pan;
102      bool   m_loop;
103      int    m_kadpcm;
102      UINT8  m_loop;
103      UINT8  m_kadpcm;
104104   } m_voice[4];
105105
106106   friend class k053260_device::KDSC_Voice;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team