mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Fix error in sample device (nw)
This commit is contained in:
parent
4045515717
commit
b814617b65
@ -84,8 +84,8 @@ void samples_device::start(UINT8 channel, UINT32 samplenum, bool loop)
|
||||
chan.stream->update();
|
||||
|
||||
// update the parameters
|
||||
sample_t &sample = m_sample[samplenum];
|
||||
chan.source = &sample.data[0];
|
||||
sample_t &sample = m_sample[samplenum];
|
||||
chan.source = (sample.data.size() > 0) ? &sample.data[0] : NULL;
|
||||
chan.source_length = sample.data.size();
|
||||
chan.source_num = (chan.source_length > 0) ? samplenum : -1;
|
||||
chan.pos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user