playback

Recording/playback Kinect with Matlab - upside down and in black/white rather than gray scale

老子叫甜甜 提交于 2019-12-05 09:27:13
问题 I am trying to write a program to record and playback both colour and depth streams from a xbox kinect to ease testing image processing programs. Currently I have the bulk done and the colour stream works fine. I am however having trouble with the depth stream. Currently, the depth stream is playing back upside down and only in black and white. I have 3 thoughts as to why this may be the case: 1) The conversion to 8-bit from 11-bit 2) the Motion JPEG 2000 format (never used this before) 3)

How can I tell if an HTML5 Audio element is playing with Javascript

泄露秘密 提交于 2019-12-05 03:56:05
I have an audio element in a webpage, and I want to ensure that a user is not still playing it when they leave the page. How can I be sure the audio element is not playing when the page is unloaded? So far, I have the following code, but it doesn't seem to work; the dialog that pops up upon unload reports that playing is false even when the audio is playing: <!DOCTYPE HTML><html> <head> <script><!-- Loading Scripts --> function unloadTasks(){ if (playing && !window.confirm("A podcast is playing, and navigating away from this page will stop that. Are you sure you want to go?")) window.alert(

OpenAL playback captured audio data c++

馋奶兔 提交于 2019-12-05 02:27:13
问题 I am trying to create a voice chat program using OpenAL. The networking side of things seems to be ok but I'll take advice on that =] The problem I am having at the moment is trying to playback captured audio data from the mic. I followed the code found here to get mic input and echo it to the speakers. This works OK but I can't seem to playback the fully captured audio after the capturing has finished. When some sound has been captured I store it on a list like so... for (int i = 0; i < CAP

Android Animation pause and play problem

有些话、适合烂在心里 提交于 2019-12-05 00:23:03
问题 I have created an animation using the following code. private AnimationSet rootSet = new AnimationSet(true); private int xstart=258; private int ystart=146; for(; k<points.length; k++) { if(k==1) { x1 = headX(xstart); y1 = headY(ystart); _animTime = 10; } else { x1 = headX(points[k-1][0]); y1 = headY(points[k-1][1]); } translate = new TranslateAnimation((float)x1, (float)x2, (float)y1, (float)y2); translate.setDuration(_animTime); translate.setFillAfter(true); translate.setInterpolator(new

Sound (audio file) player in java - working source code example

有些话、适合烂在心里 提交于 2019-12-04 23:44:07
转载自: http://ganeshtiwaridotcomdotnp.blogspot.com/2011/12/sound-audio-file-player-in-java-working.html Sound (audio file) player in java - working source code example import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.SourceDataLine; import javax.sound.sampled.UnsupportedAudioFileException; public class Player implements Runnable { static final int BUF_SIZE =

Video not playing on iOS10 Chrome

不问归期 提交于 2019-12-04 22:46:45
I just can't seem to locate what's wrong with this video snippet. <video poster="sample.jpg" loop autoplay controls muted playsinline> <source type="video/webm" src="sample.webm"></source> <source type="video/mp4" src="sample.mp4"></source> </video> The video plays without any problems in Safari (haven't tested against earlier versions of iOS, but my only concern there is the autoplay issue?), but on Chrome the only thing I see is the cover image and a play button that doesn't trigger anything. Am I missing something? Do I really need to use JS to get it to work? Update: It seems there's an

mp3 website player with synchronized playback (not streaming)

那年仲夏 提交于 2019-12-04 10:51:17
Want a player (easy enough to put up) that plays back a directory of mp3s in such a way that if you join at 3:33:33 pm, you hear what others hear, not track one. like a pseudo broadcast/stream. how do i achieve that - what looks nice / is probably minimizable / is easy? i am trying to use mirvling but no such luck. any ideas? It's unlikely you're going to find something to drop in place. Plus, this isn't typically handled on the client side of things. You neglected to specify what languages and what not that you are using, so I'll provide a general answer. There are two methods to accomplish

Android Tempo/playback speed change

对着背影说爱祢 提交于 2019-12-04 10:30:16
I am creating an Android app which requires the real time change of playback rate/speed. I have searched all over the internet and have seen many solutions including Tutorials for OpenSL ES for Android How to change audio tempo and pitch individuality using ffmpeg? As i am relatively new to development and android some of these are simply out of my leauge. Many of these examples talk about Soundpool but this api does not work with large files. After looking through API's and classes i found the method setPlaybackRate(int sampleRateInHz) under the AudioTrack class. http://developer.android.com

Android Media Player Wont Play After Stop

﹥>﹥吖頭↗ 提交于 2019-12-04 04:44:17
I have music playlist for 5 songs. I just want that play and stop buttons work as long as im in app. And that i can stop music when i want to and start another. How this works now...The music plays on PLAY button, and when i click STOP button it stops, but then i want to play some other song, or same song again, nothing happens. Please help. public class glavna extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final MediaPlayer MPRadio1 = MediaPlayer

Recording audio works, playback way too fast

两盒软妹~` 提交于 2019-12-04 04:42:58
问题 I am recording audio input from microphone using the following function: private function handleSampleData(p_sampleEvent:SampleDataEvent) :void { var data :Number; while (p_sampleEvent.data.bytesAvailable) { data = p_sampleEvent.data.readFloat(); _buffer.writeFloat(data); _buffer.writeFloat(data); } } This seems to work. After I have finished recording, I copy the recorded data to another buffer like this: _buffer.position = 0; _lastRecord = new ByteArray(); while (_buffer.bytesAvailable) {