Skip to content
Permalink
Browse files
Change Namcot163 sample length limit
  • Loading branch information
rdanbrook committed Feb 10, 2015
1 parent 89cc34f commit 5e3544df2ff8ad95c773f95c0eca65366114e858
Showing with 4 additions and 2 deletions.
  1. +2 −1 source/core/board/NstBoardNamcot163.cpp
  2. +2 −1 source/core/board/NstBoardNamcot163.hpp
@@ -289,7 +289,8 @@ namespace Nes

inline void N163::Sound::BaseChannel::SetWaveLength(const uint data)
{
const dword length = (0x20UL - (data & REG_WAVELENGTH)) << PHASE_SHIFT;
//const dword length = (0x20UL - (data & REG_WAVELENGTH)) << PHASE_SHIFT;
const dword length = (0x100UL - (data & REG_WAVELENGTH)) << PHASE_SHIFT;

if (waveLength != length)
{
@@ -81,7 +81,8 @@ namespace Nes
{
NUM_CHANNELS = 8,
EXRAM_INC = 0x80,
REG_WAVELENGTH = 0x1C,
//REG_WAVELENGTH = 0x1C,
REG_WAVELENGTH = 0xFC,
REG_ENABLE_SHIFT = 5,
REG_VOLUME = 0x0F,
PHASE_SHIFT = 18,

0 comments on commit 5e3544d

Please sign in to comment.