Skip to content

Commit

Permalink
Disabling pausing/resuming sound when in background due to issues rep…
Browse files Browse the repository at this point in the history
…orted.
  • Loading branch information
Christian Stefansen committed Dec 12, 2013
1 parent 4bdbad2 commit 9ad0d94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build_native_client.sh
Expand Up @@ -190,7 +190,7 @@ if [ "$1" = "run" ] || [ "$1" = "debug" ]; then
# Chrome flags.
# Add the flag --disable-gpu to simulate system without OpenGLES support.
CHROME_FLAGS='--user-data-dir=../chrome-profile \
--no-first-run --disable-gpu'
--no-first-run'
# Some other convenient command-line flags to use:
# --show-fps-counter --incognito

Expand Down
7 changes: 5 additions & 2 deletions src/gui-html/html_gui.c
Expand Up @@ -109,10 +109,12 @@ int handle_message(const char* msg) {
* be delivered until the tab is back in front. This means that the
* emulator is probably already stuck in some call and won't get to
* our UI request to pause the sound. */
pause_sound();
/* TODO(cstefansen)People are reporting pausing/resuming problems; let's
not do this until investigated. */
/* pause_sound(); */
write_comm_pipe_int(&from_gui_pipe, UAECMD_PAUSE, 1);
} else if (i == 1 && !strcmp(t[0], "resume")) {
resume_sound();
/* resume_sound(); */
write_comm_pipe_int(&from_gui_pipe, UAECMD_RESUME, 1);
} else if (i == 2 && !strcmp(t[0], "eject")) {
int drive_num;
Expand Down Expand Up @@ -256,6 +258,7 @@ void gui_handle_events (void)

/* Process it, e.g., call uae_reset(). */
while (comm_pipe_has_data (&from_gui_pipe) || gui_pause_uae) {
DEBUG_LOG("gui_handle_events: trying to read...\n");
int cmd = read_comm_pipe_int_blocking (&from_gui_pipe);
DEBUG_LOG("gui_handle_events: %i\n", cmd);

Expand Down

0 comments on commit 9ad0d94

Please sign in to comment.