Moved class members to bottom, replaced some types and added default initializers.

Mostly replaced raw pointers with std::unique_ptr for easier memory management. Probably not needed for many of those classes, but was the least intrusive change for now.
This commit is contained in:
Kai Blaschke
2022-04-04 22:54:33 +02:00
parent 7488250cab
commit 3cc3667347
3 changed files with 69 additions and 156 deletions

View File

@ -738,10 +738,10 @@ static auto PcmAdd(projectm_handle instance, const BufferType* samples, unsigned
auto* projectMInstance = handle_to_instance(instance);
if(channels == PROJECTM_MONO) {
projectMInstance->pcm()->AddMono(samples, count);
projectMInstance->pcm().AddMono(samples, count);
}
else {
projectMInstance->pcm()->AddStereo(samples, count);
projectMInstance->pcm().AddStereo(samples, count);
}
}