-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Im-Rises/develop
Develop
- Loading branch information
Showing
22 changed files
with
364 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 19 additions & 1 deletion
20
Chip8topia/Chip8Emulator/Chip8Emulator/Chip8SoundEmulation.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
#include "Chip8SoundEmulation.h" | ||
|
||
void Chip8SoundEmulation::update(const float deltaTime) { | ||
#include <sdl.h> | ||
#include "../Chip8CoreBase/Chip8CoreBase.h" | ||
|
||
void Chip8SoundEmulation::update(Chip8CoreBase* chip8Core) | ||
{ | ||
// // get ST | ||
// const auto st = chip8Core->getCpu()->getST(); | ||
// | ||
// // if ST > 0, play sound | ||
// if (st > 0) | ||
// { | ||
// // play sound | ||
// SDL_PauseAudio(0); | ||
// } | ||
// else | ||
// { | ||
// // pause sound | ||
// SDL_PauseAudio(1); | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#pragma once | ||
|
||
// Handle webaudio and openal sound drawing | ||
|
||
class Chip8SoundEmulation { | ||
class Chip8CoreBase; | ||
class Chip8SoundEmulation | ||
{ | ||
public: | ||
void update(const float deltaTime); | ||
void update(Chip8CoreBase* chip8Core); | ||
}; |
Oops, something went wrong.