Previous 199869 Revisions Next

r26603 Saturday 14th December, 2013 at 00:36:54 UTC by hap
stop channel decoder when stopping playback (needs to be added to mpeg_audio)
[src/emu/sound]ymz770.c

trunk/src/emu/sound/ymz770.c
r26602r26603
1313- What does channel ATBL mean?
1414- Is YMZ774(and other variants) the same family as this chip?
1515  What are the differences?
16- channel volume is linear or logarithmic?
1617
1718***************************************************************************/
1819
r26602r26603
122123
123124   for (int i = 0; i < samples; i++)
124125   {
125      INT32 mix = 0;
126
126      // run sequencers (should probably be in separate timer callbacks)
127127      for (int ch = 0; ch < 8; ch++)
128128      {
129129         if (m_channels[ch].is_seq_playing)
r26602r26603
160160               }
161161            }
162162         }
163      }
164     
165      // process channels
166      INT32 mix = 0;
167
168      for (int ch = 0; ch < 8; ch++)
169      {
163170         if (m_channels[ch].is_playing)
164171         {
165172            if (m_channels[ch].output_remaining > 0)
r26602r26603
182189                  else
183190                  {
184191                     m_channels[ch].is_playing = false;
192                     //m_channels[ch].decoder->stop();
185193                  }
186194               }
187195
r26602r26603
289297            else
290298            {
291299               m_channels[voice].is_playing = false;
300               //m_channels[voice].decoder->stop();
292301            }
293302
294303            m_channels[voice].control = data;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team