mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
multipcm: Saner pointer allocation (nw)
This commit is contained in:
parent
d8f27b7e87
commit
40a59e3cb6
@ -259,8 +259,6 @@ void multipcm_device::lfo_init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pitch_scale_tables = std::make_unique<std::unique_ptr<int32_t[]>[]>(8);
|
|
||||||
m_amplitude_scale_tables = std::make_unique<std::unique_ptr<int32_t[]>[]>(8);
|
|
||||||
for (int32_t table = 0; table < 8; ++table)
|
for (int32_t table = 0; table < 8; ++table)
|
||||||
{
|
{
|
||||||
float limit = PHASE_SCALE_LIMIT[table];
|
float limit = PHASE_SCALE_LIMIT[table];
|
||||||
|
@ -107,9 +107,9 @@ private:
|
|||||||
std::unique_ptr<int32_t[]> m_total_level_steps;
|
std::unique_ptr<int32_t[]> m_total_level_steps;
|
||||||
|
|
||||||
std::unique_ptr<int32_t[]> m_pitch_table;
|
std::unique_ptr<int32_t[]> m_pitch_table;
|
||||||
std::unique_ptr<std::unique_ptr<int32_t[]>[]> m_pitch_scale_tables;
|
std::unique_ptr<int32_t[]> m_pitch_scale_tables[8];
|
||||||
std::unique_ptr<int32_t[]> m_amplitude_table;
|
std::unique_ptr<int32_t[]> m_amplitude_table;
|
||||||
std::unique_ptr<std::unique_ptr<int32_t[]>[]> m_amplitude_scale_tables;
|
std::unique_ptr<int32_t[]> m_amplitude_scale_tables[8];
|
||||||
|
|
||||||
uint32_t value_to_fixed(const uint32_t bits, const float value);
|
uint32_t value_to_fixed(const uint32_t bits, const float value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user