Questions tagged [buffering]

Buffering is a process of temporarily storing data while it is being moved from one place to another.

Buffering is a process of temporarily storing data while it is being moved from one place to another. A buffer often adjusts timing by implementing a queue (or FIFO) algorithm in memory, simultaneously writing data into the queue at one rate and reading it at another rate.

Use this tag for programming questions related to data buffer and the process of buffering.

Source: Wikipedia

493 questions
0
votes
1 answer

Android audio streaming without MediaPlayer (need to work with buffer)

I have an app that plays online radio stations using MediaPlayer, but now I need to be able to record what I am listening and have a one minute buffer to re-listen. With MediaPlayer I don't have access to the buffer so is useless to me, wich can be…
Oriol Farrús
  • 31
  • 1
  • 4
0
votes
2 answers

How do I double buffer a Java animation with many threads painting simultaneously?

I was working on a simple "Bouncing Ball"-Animation in Java. The idea is that it initally spawns a single ball moving in a straight line until hitting the panel border, which causes it to bounce off as you would expect. You can then spawn additional…
Mvin
  • 385
  • 4
  • 12
0
votes
1 answer

Buffering or moving PHP data to display in a different part of a webpage

I am parsing a very large XML file with XMLReader. $reader = new XMLReader; $reader->open('products.xml'); $dom = new DOMDocument; $xpath = new DOMXpath($dom); while ($reader->read() && $reader->name !== 'product') { continue; } A while loop is…
Dean Olsen
  • 131
  • 4
  • 13
0
votes
0 answers

Stop clearing graphics on repaint();?

I'm creating a simple Breakout game and I've encountered a couple of problems. First off, I need to render the bricks, the paddle, etc... I need to generally render everything on the screen that's needed. However, I don't want, for example, the…
user3422952
  • 319
  • 2
  • 8
  • 17
0
votes
1 answer

Play html5 video with buffering on apache with php

I have a simple a html5 video tag pointing to a mp4 video through php. My problem is that the video starts playing only after it has been completely loaded by the browser. How should I output video with php? I have used http ranges headers but…
albanx
  • 6,193
  • 9
  • 67
  • 97
0
votes
2 answers

asp.net double buffering?

How can I use double buffering in asp.net C#? I want smthng like that : I dont want full page refresh when I click a button in a web page.. I think it can be solved with double buffering. When a button clicked for redirect a content page (button-in…
cowboycb
  • 539
  • 5
  • 11
0
votes
1 answer

gstreamer -playing audio from a website.. buffering issue

I am trying to play a sound file using : gst-launch playbin uri="some URL" where, URL is the whole url of that file. It plays this file, but there is buffering problem and I can't listen to most of the audio. Is there a simple command line…
cppb
  • 2,319
  • 8
  • 32
  • 37
0
votes
1 answer

Android MediaPlayer buffering behavior (VBR files)

Turns out the Android Media Player (stagefright) has some weird buffering algorithm for variable bitrate files. It seems to try to buffer multiple megabytes (2-3 MB on a 5MB total MP3 file) until it starts playing. To make things worse, it may start…
Daniel
  • 2,087
  • 3
  • 23
  • 37
0
votes
2 answers

Python Recv() stalling

I'm writing a very basic HTTP client: import socket from socket import * Payload = """GET /test.html HTTP/1.1 Accept: */* Accept-Language: en-us User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) Accept-Encoding: gzip,…
n00bz0r
  • 87
  • 9
0
votes
0 answers

Bash stdin buffer full

I have an interesting scenario ... EDIT: I am considering the scenario where there is a large amount of test flowing into stdin (like loop.sh) which is read at a slower rate in some other program (loop2.sh). I make the following assumption: only the…
da_steve101
  • 283
  • 4
  • 16
0
votes
2 answers

Dynamic buffer in java

What I'm looking for is some sort of dynamic buffering which I try to explain: It should be possible to add some values at the end of the buffer. And while it's adding up values at the end of the buffer, I should be able to get some values from the…
baklap
  • 2,145
  • 6
  • 28
  • 41
0
votes
1 answer

TCP buffering deadlock, how can i disconnect a user who isn't receiving data?

I have a server that runs fine except when I performance test it by spamming packets through it. The clients do not receive data only send and then the server ends up in a deadlock. How can I check if the end user is not receiving data and…
0
votes
0 answers

PHP string output buffer to html- generating extra anchor tag

Once again, I have no choice but to ask you guys for help on this one as i'm completely baffled and I've been trying to solve it this past hour. I have some php code structured something like this : function build($url=""){ $output = '
LogixMaster
  • 586
  • 2
  • 11
  • 36
0
votes
0 answers

Canvas buffering screen size

I wrote these code in a class which extends Canvas. (please have a look at the pictures at these links if you don't want to read, i can't post pictures directly because of stackoverflow reputation or…
Dylan Yasen
  • 21
  • 1
  • 4
0
votes
1 answer

fprintf function not working but it returns positive number

I'm using fprintf in the following way. Everything seems to be ok but fprintf doesn't print to my file at all! fprintf(pFile, "%s\n", "print"); Something that is strange is that fprintf returns OK. it returns 6 in the above code, but not printing…
saeed M
  • 21
  • 7