Questions tagged [pause]

Executing pause operations on application, game or process

Pause refers to a temporary halt in time for some execution of a process.

As an example, the pause command used in DOS will stop playing audio or video, with the possibility to continue in the future (in the case of video: with a still image).

It may also refer to hardware used to initiate a pause such as the Pause/Break key (the secondary function of the PgUp key on some computer keyboards) and the Pause key or symbol on media players.

598 questions
2
votes
1 answer

Why does pause(2) not return in secondary thread?

Consider this example I set up to illustrate this. #define _POSIX_C_SOURCE 199506L #include #include #include #include #include #include void hand(int sig); void *thrfn(void…
nebuch
  • 6,475
  • 4
  • 20
  • 39
2
votes
1 answer

Youtube video iframe API - How to pause the video when it looses focus?

I'm using the Youtube video iframe API and everything works perfect. There's only one thing left for it to work as i spected: I want to detect when the video focus is out, even if it happends in the same window or browser tab, for it to stop…
2
votes
1 answer

How to continue Alamofire Download task after suspend it, terminate the app, and reopen the app

I need to write a downloader for my app, and It can pause, continue and cancel the downloads. Also it must support to pause download, kill the app, and reopen the app and continue from where it paused. How can i keep the downloaded data and how can…
marmaralone
  • 516
  • 6
  • 11
2
votes
2 answers

Pausing Large number of AJAX calls, multiple data sets

I am trying to create a web utility that take several large datasets and makes ajax calls to process them and index them into a table for searching. Basically, the data will be broken down into 5 data sets, but for the sake of simplicity, I will…
Dutchie432
  • 28,798
  • 20
  • 92
  • 109
2
votes
2 answers

How do I access the methods of the video when using Videogular?

I have a video that I want to pause after it reaches X seconds. I can play the video I can listen to the currentTime through: I can catch the time I'm…
zipdog
  • 43
  • 1
  • 7
2
votes
0 answers

Way to fade out Android AudioTrack on .pause()?

I've been delving into Android AudioTrack against my better interest. I am trying to seamlessly transition between two AudioTrack's playback, that is, one should pause and the other should start and there should be no gap between the two. This works…
Jake Meacham
  • 103
  • 1
  • 9
2
votes
4 answers

C# pause foreach loop until button pressed

Using C#, I have list of methods (Actions). I then have a method to invoke action using a foreach loop. A button click calls the method which in turn invokes every action in the list in one go. What I am after is for the click to only execute one…
justlearning
  • 165
  • 1
  • 6
1
vote
1 answer

Pause-resume function on countdown timer (Javascript)

Currently creating a 25 minutes countdown timer with timing incrementing/decrementing buttons. I managed to create the timer and get it to work when pressing "Start" button, but I'm struggling to find a way for inserting a function to pause it when…
1
vote
1 answer

Game not unpaused after awaiting timer - Godot 4

I want to pause game execution for one second every frame. However, the game never resumes, why is that? I am using the following _process function in the root/world node: func _process(delta): get_tree().paused = true await…
dotconfig
  • 11
  • 3
1
vote
0 answers

Swiper slider slowdown after load new loop

i have a little problem. I made a slider that plays photos with the coverflow effect in a loop. The problem is that when loading a new loop, the first time after all 8 slides, then after every 4, there is a slowdown. How to eliminate or remove…
1
vote
1 answer

Interrupt and, if necessary, terminate a program at regular intervals in c++

I need your help. Program A executes program B with fork(). Every 5 seconds the process belonging to program B is interrupted. If the user enters any key within a certain time, the process is continued and interrupted again after the same time…
Raizel
  • 11
  • 2
1
vote
2 answers

Area2D only becomes invisible when clicked on the edges. (c#)

I have created a pause screen Area2D for my game, in any case the player goes AFK. I wrote a code so whenever the key P is pressed it appears and everything pauses, and if it is clicked it disappears and everything goes back to normal. I wrote a…
George
  • 101
  • 8
1
vote
1 answer

how can i change text when pausing / resuming phaser game?

I'm trying to toggle between 'Pause' and 'Resume' text when pausing and resuming, i tried the following in create: gameState.playPauseText = this.add.text(660, 547, 'Pause', { fontFamily: 'Roboto Mono, monospace', fontSize: '20px', fill: '#FFFFFF'…
chylinski
  • 85
  • 12
1
vote
1 answer

Pause Function Ursina - Python

I'm trying to do a pause menu for my game in Ursina Engine and I can't fount informatino how the function pause() works or how to do it. Can someone help me?
Dipo3
  • 33
  • 5
1
vote
1 answer

Pyplot plt.pause() delay gets longer everytime it runs

im trying to make a program that plots points, shows the plt, and pauses for 0.1 sec. Now everytime i run the program the plt.pause(0.1) function seems to be additive. Anyone have a clue how to fix that? I timed it using the code below but you can…