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
4
votes
2 answers

In AVAudioPlayer after a pause the song does not continue on Swift

In AVAudioPlayer after a pause the song does not continue, start again on Swift. Problem is when I choose Pause button and again Play button then It should start from starting. import UIKit import AVFoundation class DetailViewController:…
Janserik
  • 2,306
  • 1
  • 24
  • 43
4
votes
4 answers

How to correctly pause/delay Windows Forms application

I am a beginner to the OOP and the C#. I am working on a quiz game using the Windows Forms. My problem is related to two classes, the form and the game logic. I have a basic UI with classic Froms controls. Take a look. The thing I want to achieve…
user4870780
4
votes
1 answer

How to pyplot pause() for zero time?

I'm plotting an animation of circles. It looks and works great as long as speed is set to a positive number. However, I want to set speed to 0.0. When I do that, something changes and it no longer animates. Instead, I have to click the 'x' on the…
Timothy Swan
  • 623
  • 3
  • 9
  • 21
4
votes
4 answers

How do you keep the console from closing after the program is done?

How do you keep the console from closing after the program is done in Java?
mikigal
  • 61
  • 1
  • 1
  • 3
3
votes
0 answers

Pause ALSA pcm handle without snd_pcm_pause()

I am working on an audio player written in C that uses libasound (ALSA) as the audio back-end. I have implemented a callback mechanism that allows the audio player to send audio to ALSA in a timely manner. I configured my pcm_handle to internally…
3
votes
1 answer

How to pause matplotlib animation for some seconds(without using any mouse clicks)?

I have created a script that animates two scatter points and a line in between them. Here is the gif: And here is the script used for animation: from a import get_points import numpy as np import matplotlib.pyplot as plt import matplotlib.animation…
slothfulwave612
  • 1,349
  • 9
  • 22
3
votes
1 answer

Interrupting code after given amount of iterations with future_lapply

I tried for some hours now to fix this problem, but I did not find a solution until now. The problem is the following: I have the following peace of code, where I basically just check whether a URL mentioned in a data base is updated or not. Every…
wwnpo01
  • 75
  • 6
3
votes
1 answer

How can I pause inside a for loop

Well, I can pause, the problem is that all my "pauses" are accumulating instead of being sequentially done. I tried many clocks stuff, sleep,.. with each time the same result. Am I missing something here? I just want to do this to help me program…
Nick Mack
  • 75
  • 6
3
votes
5 answers

How do you tell a function to wait a few seconds in Kotlin?

Kotlin in Android Studio here. I'm trying to get an imageView to fade into the main view, wait a few seconds, then fade out. For the life of me I can't find any documentation on pausing or waiting anywhere. It's driving me nuts. How do I tell my…
ZoologyKT
  • 45
  • 1
  • 7
3
votes
0 answers

Pausing Audio Recording in Java

I am trying to implement a pause/resume functionality for my audio recording module in Java. So far all I have found on SO is this, which does not give a definitive answer - I have tried the answerer's suggestion of calling start() and stop() on the…
Mick McCarthy
  • 428
  • 2
  • 16
3
votes
3 answers

Select - Option How to Pause browser to Inspect

I have a dropdown menu created by select - option. A sample is HERE I need to inspect this dropdown menu to do some customer style. I could pause Chrome by below code, but when I move the mouse, the dropdown menu disappears away! I wonder if there…
abcid d
  • 2,821
  • 7
  • 31
  • 46
3
votes
0 answers

How can I pause and resume google TTS without synthesizing TTS into Audio in android?

How can I pause and resume google TTS without synthesizing TTS into Audio in android Like media player play pause.
3
votes
3 answers

LibGDX Game Pause State: Animation flicker/bug

Im trying to implement a pause option for my following game. By pressing the back button my game should go to the updatePause() method. But instead it renders the latest 2-3 frames repeatedly. Making it look like it's "flickering". By trying to…
3
votes
2 answers

How to delay within a single method while not delaying the whole program in java?

I am writing a snake program in java that paints a series of rectangles. I don't understand how to delay my direction changes for blocks in order so that the snake rectangles change direction all at the same spot that the arrow key was hit. I need…
katelyn e
  • 31
  • 4
3
votes
2 answers

Android videoview resume not working

I have been working on playing videos using VideoView in Android. OnPause of fragment i am pausing the video and storing the seektime @Override public void onPause() { super.onPause(); if (videoview != null &&…
Anukool
  • 5,301
  • 8
  • 29
  • 41
1 2
3
39 40