playback

How to do background music for my WPF-Application?

巧了我就是萌 提交于 2019-12-11 07:15:48
问题 I have an WPF-Application with 3 different UserControls in the MainWindow and only one of these is visible at the time. It's like having 3 different pages and you able to switch from one page to another when you like it. First page is like a start-screen. Second is like the "general view". And the third page shows details. Switching between them works fine with Storyboard. I just make the visible page invisible (opacity to zero) and move it out of the visible window- area and move the new

How would i play a specific song in iTunes through java? [closed]

╄→гoц情女王★ 提交于 2019-12-11 06:43:14
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . How would i play a specific song in iTunes through java? I assume I need to somehow connect to iTunes and use the play function with a certain parameter....Can anyone point me in the right direction to learning how to do this? 回答1: According to that answer, there is no API.

How to play an AIFF sound file using Erlang?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 06:34:05
问题 I am trying to look for a way to play an AIFF file using Erlang. I have found this tutorial, but it seems to be only about reading the content of the file and not actually playing it. 回答1: I suggest using the linux command "play" with "os:cmd" or "ports". It is quite ad-hoc but it is not a very uncommon command and it may do the trick. 来源: https://stackoverflow.com/questions/15199075/how-to-play-an-aiff-sound-file-using-erlang

Raspberry pi: generate and play tone from python code (with sox)

﹥>﹥吖頭↗ 提交于 2019-12-11 04:36:22
问题 I am building a simple GUI with Raspberry, TKinter, and sox, using python 3. I want to play a tone, generated on the fly, every time a button in the GUI is pressed. Here's the code: from Tkinter import Tk, Label, Button import os class MyFirstGUI: def __init__(self, master): self.master = master master.title("Random Tone Generator") self.label = Label(master, text="Press Generate and enjoy") self.label.pack() self.generate_button = Button(master, text="Generate", command=self.generate) self

Play and Seek Audio File in java

可紊 提交于 2019-12-11 04:01:23
问题 I used this class to play my Wav file. Its very good but How to start my wav file on some position (KB or second)? auline.start(); int nBytesRead = 0; byte[] abData = new byte[EXTERNAL_BUFFER_SIZE]; try { while (nBytesRead != -1) { nBytesRead = audioInputStream.read(abData, 0, abData.length); System.out.println("s"); if (nBytesRead >= 0) auline.write(abData, 0, nBytesRead); } } catch (IOException e) { return; } finally { auline.drain(); auline.close(); } This is part of the code. 回答1: A Clip

.NET video play library which allows to change the playback rate?

大城市里の小女人 提交于 2019-12-11 03:22:39
问题 I am integrating a video player to an existing .NET WinForms application. I first tried to use "Windows Media Player Control" which is included in Windows SDK, but I could not change the playback rate. The following is the code I wrote to change the rate. if (axWindowsMediaPlayer1.settings.get_isAvailable("Rate")) { axWindowsMediaPlayer1.settings.rate = 3.0; } The condition in the if statement always returns "false" no matter what video file I use. Does anyone have any idea why I cannot

JQuery Menu Sound Play On Hover

给你一囗甜甜゛ 提交于 2019-12-11 01:27:44
问题 I have a menu on the right, and when hovered over I want this click sound to play. However I don't understand how this would be enabled. I use an unordered list, and the li's have links that link to pages. This is what I got so far. index.html <html> <head> <title>Simple Learning Project</title> <link rel="stylesheet" type="text/css" href="style.css"> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#navigation')

Pausing Audio Recording in Java

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 19:53:17
问题 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 TargetDataLine to achieve this, and am aware that stop() (from Oracle): "Stops the line. A stopped line should cease I/O activity. If the line is open and running, however, it should retain the resources required to resume activity. A stopped line

Play sound with a little delay

柔情痞子 提交于 2019-12-10 19:21:31
问题 I have a sound in my app that starts automatically when appear the view; but, as the title says, I'd like that this sounds starts with a little delay, about an half second after the view appear. I tried to use PlayAtTime, but or it does not work or I have set somethings wrong... This is my code: var player = AVAudioPlayer? override func viewDidLoad() { super.viewDidLoad() playAudioWithDelay() } func playAudioWithDelay() { let file = NSBundle.mainBundle().URLForResource("PR1", withExtension:

How can you stop a sound from playing in as3?

烈酒焚心 提交于 2019-12-10 19:11:38
问题 I have this code in the second frame to play a song, and it works fine. The class of the sound in my library being "MySound". var snd:MySound = new MySound snd.play(); Now I need the song to stop playing from a latter frame. 回答1: You have to use SoundChannel class for this: var mySound:Sound = new Sound(); var myChannel:SoundChannel = new SoundChannel(); mySound.load(new URLRequest("myFavSong.mp3")); myChannel = mySound.play(); // ... myChannel.stop(); Reference: http://www.republicofcode.com