1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-30 22:56:03 +00:00

Strips mixer back to basics in search of audio issues.

This commit is contained in:
Thomas Harte 2020-04-24 23:32:02 -04:00
parent b3979e2fda
commit 6d4e29c851
2 changed files with 12 additions and 3 deletions

View File

@ -66,7 +66,16 @@ void OPLL::get_samples(std::size_t number_of_samples, std::int16_t *target) {
const int update_period = 72 / audio_divider_;
const int channel_output_period = 8 / audio_divider_;
// Fill in any leftover from the previous session.
while(number_of_samples--) {
if(!audio_offset_) update_all_chanels();
*target = int16_t(channels_[audio_offset_ / channel_output_period].level);
++target;
audio_offset_ = (audio_offset_ + 1) % update_period;
}
/* // Fill in any leftover from the previous session.
if(audio_offset_) {
while(audio_offset_ < update_period && number_of_samples) {
*target = int16_t(channels_[audio_offset_ / channel_output_period].level);
@ -101,7 +110,7 @@ void OPLL::get_samples(std::size_t number_of_samples, std::int16_t *target) {
*target = int16_t(channels_[c / channel_output_period].level);
++target;
}
}
}*/
}
void OPLL::set_sample_volume_range(std::int16_t range) {

View File

@ -67,7 +67,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
enableASanStackUseAfterReturn = "YES"