Skip to content

Commit

Permalink
implement getVolume() for WaveChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
Demigod345 committed Dec 5, 2023
1 parent 137d0d2 commit ec29cb8
Show file tree
Hide file tree
Showing 5 changed files with 326 additions and 309 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ build/
cmake-build-debug/
.idea/
src/.vscode/
CMakeSettings.json
CMakeSettings.json
run.sh
5 changes: 3 additions & 2 deletions src/gameBoy.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ GBE::GBE()
gbe_sound->test();

// Open the Boot ROM
if ((bootROM = fopen("../../../src/dmg_boot.gb", "rb")) == NULL)
if ((bootROM = fopen("../src/dmg_boot.gb", "rb")) == NULL)
printf("boot rom file not opened");

// Open the Game ROM
if ((gameROM = fopen("../../../tests/pacman.gb", "rb")) == NULL)
if ((gameROM = fopen("../tests/tetris.gb", "rb")) == NULL)
printf("game rom file not opened");

// Set the Boot ROM
Expand Down Expand Up @@ -129,6 +129,7 @@ void GBE::update()
// this runs at a freq of around 27 * freq(DIV) = 442368 Hz
// this is probably enough to implement APU
gbe_sound->executeAPU();
gbe_sound->test();
s_Cycles = 0;
s_Cycles += gbe_cpu->performInterrupt();
gbe_graphics->pollEvents();
Expand Down
Loading

0 comments on commit ec29cb8

Please sign in to comment.