mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-02 16:04:59 +00:00
Strips mixer back to basics in search of audio issues.
This commit is contained in:
parent
b3979e2fda
commit
6d4e29c851
@ -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 update_period = 72 / audio_divider_;
|
||||||
const int channel_output_period = 8 / 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_) {
|
if(audio_offset_) {
|
||||||
while(audio_offset_ < update_period && number_of_samples) {
|
while(audio_offset_ < update_period && number_of_samples) {
|
||||||
*target = int16_t(channels_[audio_offset_ / channel_output_period].level);
|
*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 = int16_t(channels_[c / channel_output_period].level);
|
||||||
++target;
|
++target;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void OPLL::set_sample_volume_range(std::int16_t range) {
|
void OPLL::set_sample_volume_range(std::int16_t range) {
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
</Testables>
|
</Testables>
|
||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Release"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
enableASanStackUseAfterReturn = "YES"
|
enableASanStackUseAfterReturn = "YES"
|
||||||
|
Loading…
Reference in New Issue
Block a user