Renaming new POKEY core to AltASAP. Added core selection.
This commit is contained in:
parent
3a94a7acde
commit
4a7e76c448
8 changed files with 71 additions and 23 deletions
|
|
@ -20,14 +20,14 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "Pokey.hpp"
|
||||
#include "AltASAP.hpp"
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
|
||||
namespace Test
|
||||
namespace AltASAP
|
||||
{
|
||||
|
||||
namespace
|
||||
|
|
@ -631,12 +631,9 @@ void Pokey::write( uint8_t address, uint8_t value )
|
|||
mPokey->write( address, value );
|
||||
}
|
||||
|
||||
void Pokey::sampleAudio( int16_t* buf, size_t size, DivDispatchOscBuffer** oscb )
|
||||
int16_t Pokey::sampleAudio( DivDispatchOscBuffer** oscb )
|
||||
{
|
||||
for ( size_t i = 0; i < size; ++i )
|
||||
{
|
||||
buf[i] = mPokey->sampleAudio( oscb );
|
||||
}
|
||||
return mPokey->sampleAudio( oscb ) * 160; //just some magick value to match the audio level of mzpokeysnd
|
||||
}
|
||||
|
||||
uint8_t const* Pokey::getRegisterPool()
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
// can you forgive me
|
||||
#include "../../../dispatch.h"
|
||||
|
||||
namespace Test
|
||||
namespace AltASAP
|
||||
{
|
||||
|
||||
class PokeyPimpl;
|
||||
|
|
@ -19,7 +19,7 @@ public:
|
|||
~Pokey();
|
||||
|
||||
void write( uint8_t address, uint8_t value );
|
||||
void sampleAudio( int16_t* buf, size_t size, DivDispatchOscBuffer** oscb = NULL );
|
||||
int16_t sampleAudio( DivDispatchOscBuffer** oscb = nullptr );
|
||||
|
||||
uint8_t const* getRegisterPool();
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue