Skip to content

Commit

Permalink
Added sound support based on Amiberry
Browse files Browse the repository at this point in the history
  • Loading branch information
emoon committed Feb 10, 2024
1 parent fa29937 commit ce623a6
Show file tree
Hide file tree
Showing 3 changed files with 890 additions and 16 deletions.
18 changes: 11 additions & 7 deletions src/dummy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,10 @@ bool ariadne2_init(autoconfig_info*) {
}

void AVIOutput_Restart(bool) {
UNIMPLEMENTED();
TRACE();
//UNIMPLEMENTED();
}

void AVIOutput_Toggle(int, bool) {
UNIMPLEMENTED();
}
Expand Down Expand Up @@ -701,20 +703,21 @@ bool draco_mouse(int, int, int, int, int) {
}

void driveclick_fdrawcmd_detect() {
UNIMPLEMENTED();
TRACE();
//UNIMPLEMENTED();
}

void driveclick_fdrawcmd_motor(int, int) {
UNIMPLEMENTED();
TRACE();
}

int driveclick_fdrawcmd_open(int) {
UNIMPLEMENTED();
TRACE();
return 0;
}

void driveclick_fdrawcmd_seek(int, int) {
UNIMPLEMENTED();
TRACE();
}

void driveclick_fdrawcmd_vsync() {
Expand All @@ -723,7 +726,7 @@ void driveclick_fdrawcmd_vsync() {
}

int driveclick_loadresource(drvsample*, int) {
UNIMPLEMENTED();
TRACE();
return 0;
}

Expand Down Expand Up @@ -1760,7 +1763,8 @@ void draco_ext_interrupt(bool) {
}

void driveclick_fdrawcmd_close(int) {
UNIMPLEMENTED();
TRACE();
//UNIMPLEMENTED();
}

void dsp_pause(int) {
Expand Down
3 changes: 2 additions & 1 deletion src/quaesar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ int main(int argc, char** argv) {
currprefs.cpu_memory_cycle_exact = 1;
currprefs.blitter_cycle_exact = 1;
currprefs.turbo_emulation = 0;
currprefs.sound_stereo_separation = 0;

strcpy(currprefs.romfile, options.kickstart.c_str());

// Initialize SDL
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) != 0) {
SDL_Log("Unable to initialize SDL: %s", SDL_GetError());
return 1;
}
Expand Down
Loading

0 comments on commit ce623a6

Please sign in to comment.