1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 19:17:52 +00:00

Adds Super Game Module support for the ColecoVision.

This commit is contained in:
Thomas Harte
2018-03-03 13:08:33 -05:00
parent 7ca02be578
commit 3c5a8d9ff3
9 changed files with 75 additions and 13 deletions
+2 -2
View File
@@ -15,12 +15,12 @@ using namespace Konami;
SCC::SCC(Concurrency::DeferringAsyncTaskQueue &task_queue) :
task_queue_(task_queue) {}
bool SCC::is_silent() {
bool SCC::is_zero_level() {
return !(channel_enable_ & 0x1f);
}
void SCC::get_samples(std::size_t number_of_samples, std::int16_t *target) {
if(is_silent()) {
if(is_zero_level()) {
std::memset(target, 0, sizeof(std::int16_t) * number_of_samples);
return;
}