play

How to stop audio with pyglet when file is played?

I'm using this program to play na audio file: music = pyglet.resource.media('file.wav') music.play() pyglet.app.run() I have a problem: I can't do anything after this program. How to stop the audio file when is played? It's look like a loop. ...

Play any audio for given time

I want to play any file for 6 seconds. Also suppose the audio is bigger then 6 sec the application will play only for 6 sec.and if it is less then 6 sec then play continuously. So is there any inbuilt option from any framework? ...

C# XP Sound QuickFix

I have this: ThreadPool.QueueUserWorkItem(new WaitCallback(FireAttackProc), fireResult); and FireAttackProc: private void FireAttackProc(Object stateInfo) { // Process Attack/Fire (local) lock (_procLock) { // build status message String status = "(Away vs. Home)"; ...

flash movie plays itself when you call any, even unnamed, function in the bytesLoaded==bytesTotal if clause

I actually don't need help, i just want to know your opinion about that weird Flash CS4 (AS3) behavior. there should be something i missed. 1) what happens: flash movie plays on any (even non-existent) function call between if(bytesLoaded==bytesTotal), and doesnot play on commented-out or blank line there. 2) what should be seen instead...

Jquery: How do I fire/play a sound file when I want?

I have some code that basically inflates a 'balloon' through 15 or so stages and then makes it pop at the 16th stage. (yes, images are changed). What I'm wondering now is if it's possible to use Jquery to play a sound file whenever I reach that 16th stage (or when whatever var reaches whatever value) - in other words...when I want. I've...

Play a beep that loop and change the frequency/speed

Hi all, I am creating an iphone application that use audio. I want to play a beep sound that loop indefinitely. I found an easy way to do that using the upper layer AVAudioPlayer and the numberOfLoops set to "-1". It works fine. But now I want to play this audio and be able to change the rate / speed. It may works like the sound played b...

jQuery automatic scroll / slideshow

Could i modify this existing code to automatically scroll through the list items to display the content? Sorry, the: ul li a {} links. Maybe using "interval" method? $(document).ready(function(){ $('ul.tabNav a').click(function() { var curChildIndex = $(this).parent().prevAll().length + 1; $(this).parent().parent()...

How to play a sound file under Android browser.

Is there any way to play a sound file under Android browser? ...

How to play stream audio in iPhone/iPad

Hi, I want to play sounds from an internet server in my own program. But the sample codes Apple supplied concerned about sound play are all open an audio file, and then play it. I want to know how can I play PCM data from memory, which received from internet continuously. Either OpenAL or AudioQueue is OK. Thanks. ...

JQuery Cycle Plugin hover when paused issue, activeSlide

Almost all is dialed in except then I click the pause/play button, the current activeSlide div doesn't fade in on rollover like the other slides do. Bit at a loss to figure out why it's not allowing hover even though it works when the cycle is not manually paused (i.e. when just rolling over the pager numbers). Thanks for any guidance! ...

Jing video continuous play

Hi, I have downloaded Jing video capture tool and captured a video of an application. It creates a swf video file. Our requirement is to allow the video to play continuously. Please let me know how to achieve this. Thanks vish ...

add pause continue functionality for mouse movements recordings using jquery

how can i add pause and play functionality to the code in this link? http://svay.com/experiences/mouse-recorder/ currently here you can play and stop only. ...

play video landscape Iphone sdk 3.2 4.0 with standard api

how to play video landscape with standard api? video play only portrait !!! change the app orientation landscape is not useful, because video start portrait forever. i have a portrait app with a button, when pressed video must play landscape. yourmoviecontrollername setOrientation:UIDeviceOrientationPortrait animated:NO]; is not al...

Is it possible to pause a playing SWF file in Adobe Flex? How?

Hello guys, I just wanna know if it is possible to pause a playing SWF file in adobe flex? I have an SWF Loader and it plays my SWF file however, it does not have any capability (or built in function) that pauses the file. Can anyone help me with this please? I'll appreciate some code to start with. :) Thanks in advance. ...

How to play video stream from WebCamera using Microsoft.DirectX.AudioVideoPlayback?

How to play video stream from WebCamera using Microsoft.DirectX.AudioVideoPlayback? in C++ or C# ...

Is there a way to make JavaSound to use the codecs installed on your SO ?

Hello, I am using java Sound with the following code: public static void main(String[] args) throws Exception { JFrame frame = new JFrame(); frame.setSize(200,200); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); JFileChooser fc = new JFileChooser(); fc.showOpenDialog(null); File...

Where can I get older versions of the Flash Player Debugger?

Abobe seems to only list the most recent debugger version, even though I can target previous players in build. ...

How to play .mp3 file from resources in C#?

I put music.mp3 in resources and then I added Windows Media Player to references. I wrote this code: WindowsMediaPlayer wmp = new WindowsMediaPlayer(); wmp.URL = "music.mp3"; wmp.controls.play(); It doesn't work. How can I play .mp3 file from resources? ...

Is there a way to listen for the completion of a MovieClip playing?

I want to execute a function upon completion of a MovieClip's animation. That is, I would command it to play() or gotoAndPlay(). I don't know of any listener that I can attach to the MovieClip with the "addEventListener()" command. Have any idea I can do? ...

Playing an mp3-file with libsox

Hi all, I have an application in which I need to play an mp3 file. What I'm looking for is some kind of wrapper functions for libsox (or any other audio lib). I have been looking all over the net but have not found any option that is fast to implement. I'm looking for something like; bla=open_file("/mnt/music/my_music.mp3") play_thefil...