Audio Q: How to capture and play back later?

Hi,
Looking at the JMStudio app, it's pretty clear how to capture audio and stream it out through the speakers. What I don't understand is how to capture audio, stop, and at a later time, play that stream back. In particular, I'd like to be able to play it back beginning at a specific position. I see the Positionable interface, but I haven't found any demo code for a DataSource that implements it. Any help appreciated,
+scott                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Hi,
you have to stream your media to a file and later re-open it. To do this, simply get a DataSink and use it to save on a file.

Similar Messages

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • Record audio clip and play back it into media player

    how can i record voice clip using java application and play back it with media player.

    870902 wrote:
    how can i record voice clip using java application and play back it with media player.1) Record from "javasound://0" using a Processor / DataSink
    2) Play back the file from 1 using a Player

  • Recording and playing back

    Hi, I have question about recording and playing back.
    I am going to record by AudioQueue and to play back by MPMoviePlayerController.
    My code can record by AudioQueue.
    But, It can not record After playing back by MPMoviePlayerController.
    Is Anyone who had same problem and solved it.
    Please tell me resolution method.

    Hi
    Welcome to Apple Discussions.
    We don't get very many questions about Core Audio here so if you don't get any response, you can try the Apple emailing list for Core Audio:
    [email protected]
    The list is very friendly and I'm sure someone there will be able to answer your question.
    Bob

  • Added movie (already converted to mp4 format) to iTunes library in my PC, syncronized to iPad2, now how to locate and play it in iPad2?

    Added movie (already converted to mp4 format) to iTunes library in my PC, syncronized to iPad2, now how to locate and play it in iPad2?

    On your computer's iTunes if you select that video and do 'get info' (control-I), then on the popup on the Options tab change it's 'Kind' to 'Movie' from 'Home Video'.
    To sync it to your iPad, connect the iPad and select it on the left-hand sidebar of your computer's iTunes (if you have iTunes 11 on your computer then you can enable the sidebar via option-command-S on a Mac, control-S on a PC), and then on the right-hand side use the Movies/Films tab to select and sync it to the iPad's Videos app.

  • I am having trouble saving my swatches and brushes that I create. After I close Illustrator, and come back later my swatches and brushes are gone.

    I am having trouble saving my swatches and brushes that I create. After I close Illustrator, and come back later my swatches and brushes are gone.

    Once you have a document with the swatches, brushes, symbols that you want, save it as a new Document Profile.
    Document profiles can be found (and saved) in Library > Application Support > Adobe > Adobe Illustrator 18 (if you have CC) > your language folder > New Document Profiles.
    Next time you create a document you will find it in the list of profiles.

  • How to open and play music on Beats Audio in my new HP ENVY PC

    I bought a new HP ENVY PC that comes with Beats Audio.
    How to I open it and play music?
    How to I import music to Beats Audio?
    Thanks fr your help

    Hi,
    Beats audio does not provide a program for playing music. You can open Beats audio in Control Panel and configure sound characteristics using the various options available such as the graphics equalizer.
    You can play music by opening Windows Media Player or using Cyberlink PowerDVD.
    You can also "Google" media players for other programs.
    Jaco
    ****I am not an HP employee****
    Please give a" Kudos, Thumbs Up" if advice received is relevant or" Accept as Solution" to assist other forum users having a similar problem.
    Errare humanum est.

  • Audio out of sync. once it's uploaded to vimeo and played back looks like the old godzilla movies. PP Pro CC 2014. frame rate is correct.

    Has anybody experienced major lag time on the audio once uploaded to Vimeo? Vimeo is pointing to the export. The delay clearly gets worse once it is played back from Vimeo. I am at the point of splitting video and audio on the timeline and moving the audio forward a bit at a time to see if that will solve. Feels stupid to be doing this after all the work that goes into a 45 min Doc

    First of all, when you export, you should see the dialog box that has information about the source video as well as the export. If you are shooting 25fps then you are not in the USA. If you are in the USA, look harder at your export settings.
    But that isn't the problem you are facing.
    Are you using the Vimeo app to play the videos on the iPad or are you just playing it in a browser? Use the app if you aren't now doing so.
    I doubt that you are using anything other than AAC for your audio from what you have said about using the presets, but I have to ask. You are using AAC, right? That is what Vimeo prefers.
    Have you tried turning the HD off in Vimeo to see if that clears up the problem? That will probably be fine on a smartphone. An iPad might see the difference though.
    You are not going to be happy reading this Vimeo.com thread, but here it is anyway.
    I don't even know what to make of this one.
    In any case, you will read for yourself that you may want to change browsers on the mobile device.

  • Audio Capture and Play - Problem. can u help?

    hello all
    currently i am working in a project for which i need to capture sound and play that using headphone. for this i have implemented two classes those r CaptureSound.java and PlaySound.java. most of the cases these classes r working fine but some time these do not work perfectly. when i capture i think the recording part works fine but when i am going to play that recorded file then its playing some noisy sound though this sound file is playing perfectly if i use any audio player and i have seen that the file properties r same as which is playing with my PlaySound.java. i have tried to find - what is wrong but i can't
    any one can help me for this problem?
    the classes r :
    import java.io.*;
    import javax.sound.sampled.*;
    import javax.sound.sampled.Port.*;
    public class CaptureSound {
         private AudioFormat audioFormat;
    private TargetDataLine targetDataLine;
    AudioFormat recordingFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 11025.0F, 16, 2, 4, 11025.0F, false);
         public CaptureSound(String filePath) {
              AudioFileFormat.Type fileType = null;
              File audioFile = null;
              fileType = AudioFileFormat.Type.WAVE;
              File createDirectory = new File("C:\\Capture\\test");
              if(!createDirectory.exists()) {
                   createDirectory.mkdirs();
              audioFile = new File(createDirectory + "\\1.wav");
              try {
                   audioFormat = recordingFormat;
              DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
              targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);
              targetDataLine.open(audioFormat);
              targetDataLine.start();
              AudioSystem.write(new AudioInputStream(targetDataLine), fileType, audioFile);
              } catch (Exception e) {
              e.printStackTrace();
              System.out.println("File Not Found");
    import java.io.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import javax.sound.sampled.*;
    import java.net.URL;
    import java.awt.*;
    import java.net.URLConnection;
    public class PlaySound {
    private SourceDataLine sourcedataline;
    private AudioInputStream ais = null;
    private AudioFormat audioformat = null;
    private FloatControl gainControl;
    private InputStream inputStream = null;
    private boolean isPlayEnd = false;
         public PlaySound(String sourceFile) {
              try {
                   ais = AudioSystem.getAudioInputStream(new File("C:\\Capture\\test\1.wav"));
                   audioformat = getAudioFormat(ais);
         DataLine.Info datalineinfo = new DataLine.Info(SourceDataLine.class,audioformat);
              if (AudioSystem.isLineSupported(datalineinfo)) {
         sourcedataline = (SourceDataLine) AudioSystem.getLine(datalineinfo);
              sourcedataline.open(audioformat);
              //Copy data from the input stream to the output data line
              int framesizeinbytes = audioformat.getFrameSize();
              int bufferlengthinframes = sourcedataline.getBufferSize() / 8;
              int bufferlengthinbytes = bufferlengthinframes *framesizeinbytes;
              byte[] sounddata = new byte[bufferlengthinbytes];
              int numberofbytesread = 0;
              while ( (numberofbytesread = ais.read(sounddata, 0, sounddata.length)) != -1) {
                   if (!sourcedataline.isRunning()) {
                        sourcedataline.start();
              sourcedataline.write(sounddata, 0, numberofbytesread);
              isPlayEnd = false;
              isPlayEnd = true;
              } catch (LineUnavailableException lue) {
              } catch (IOException ioe) {
              } catch (NullPointerException npe) {
              } catch (ArrayIndexOutOfBoundsException npe) {
    } catch (UnsupportedAudioFileException use) {
         private AudioFormat getAudioFormat(AudioInputStream ais) throws
              UnsupportedAudioFileException, IOException {
         AudioFormat audioFormat = null;
         try {
              audioFormat = ais.getFormat();
         AudioFormat newformat = new AudioFormat(
         AudioFormat.Encoding.PCM_SIGNED,
         audioFormat.getSampleRate(),
         16, //audioFormat.getSampleSizeInBits()
         audioFormat.getChannels(),
         audioFormat.getChannels() * 2,
         audioFormat.getSampleRate(),
         false);
         AudioInputStream newStream = AudioSystem.getAudioInputStream(
              newformat, ais);
         audioFormat = newformat;
         ais = newStream;
              } catch (Exception e) {
              System.err.println("Exception: " + e.getMessage());
         return audioFormat;
    ///////////////////////////////////////////////////////////////////////////////////////////////////

    hello all
    i have captured sound with the format : AudioFormat recordingFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 11025.0F, 16, 2, 4, 11025.0F, false); now i want to play this file. for that i have created AudioInputStream and then i have created AudioFormat like:
    AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new File("C://Capture//test.wav"));
    AudioFormat audioFormat = audioInputStream.getFormat();after this i have got the format like :
    bigEndian: boolean = true
    channels: int = 1
    frameRate: float = -1.0
    frameSize: int = -1
    sampleRate: float = 48000.0
    sampleSizeInBits: int = -1
    here i have found different file format and it can't play. why this is happening? can any one help for this?
    thanks
    bashar

  • How to import and play audio files in java

    Hi, I'm pretty new to java and im trying to make an application that can import and play simple audio clips (mp3, wav, etc formats) when a button is clicked. If any one can help me it would be greatly appreciated.

    hi,
    i'm not a professional with java sound but it may be possible that you will find something good at this link:
    http://www.jsresources.org/examples/
    peace

  • How to read an audio file from the disk and play it?

    Do you know who to read an audio file from the hard disk and play it. It's for an application and not an applet. I tried with the Applet.newAudioClip(URL url) thing, but I keep getting a MalformedURLException.
    And is there a way to get the path of the file you are using? Currently I'm doing this:
    File file = new file("randomname");
    string = file.getAbsolutePath();
    file.delete();
    I'm sure there's a better way. And this is not for an applet, just a normal app.

    Below is a class that should be of use to you.
    package com.sound;
    import java.io.File;
    import javax.sound.sampled.AudioFormat;
    import javax.sound.sampled.AudioInputStream;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.Clip;
    import javax.sound.sampled.DataLine;
    public class SoundPlayer implements Runnable {
         String filename;
         public SoundPlayer(String filename){
              this.filename = filename;
              Thread t = new Thread(this);
              t.start();
         }//SoundPlayer constructor
         public void run(){
              playSound();
         }//run method
         public boolean playSound(){
              try {
                   File file = new File(filename);
                   AudioInputStream stream = AudioSystem.getAudioInputStream(file);
                   AudioFormat     format = stream.getFormat();
                   DataLine.Info info = new DataLine.Info(Clip.class, format);
                   Clip clip = (Clip)AudioSystem.getLine(info);
                   clip.open(stream);
                   clip.start();
                   while (clip.isRunning()) {
                       Thread.sleep(100);
                   clip.close();
              catch (Exception e) {
                  System.err.println("Error in run in SoundPlayer");
                   return false;
              return true;
         }//playSound() method
    }//Class SoundPlayer

  • Captured video plays back fast (sped up) in Final Cut Express 4

    I had a Panasonic mini-dv digital camera that was stolen and it worked great with FCE. I purchased a JVC GR-D870 (mini-dv) as a replacement and now in FCE when I capture video it plays back fast in the Viewer and if I open the .mov file in Quicktime. Note that the video plays back at the correct speed when played from the camera, and when the video is being captured. I've tried changing my Easy Setup, but nothing has helped much. I'm currently using the DV-NTSC FireWire Basic setting, though it doesn't matter which one I chose. I did try using the 25.00 fps DV-PAL setting and interestingly it will capture for about 2 seconds and then crash, but the 2 second clip I'm left with seems to playback at the normal speed. This is an NTSC camera so not sure how to get the video that I capture to play at the correct speed (frame rate?). Any help would be most appreciated.
    Message was edited by: jbrumleve

    Never heard this one before!
    I have no idea why it is playing back fast, but if you have an NTSC camera you must use an NTSC Easy Setup.
    When FCE behaves strangely the first thing to try is to delete the preferences as described here:-
    http://www.fcpbook.com/Misc1.html

  • Live video capture while playing back another video track?

    Is it possible to capture live video while another video track is being played back? I would like to do this for multitrack video recording of music: a) record a video track, then b) record a second video track while listening to/watching the first. Exactly like multitrack recording of audio as in Garage Band, but with video.
    A similar question was asked here, but I want to avoid manual synchronization. http://discussions.apple.com/thread.jspa?messageID=11712024&#11712024
    As an example, there are lots of multitrack videos on youtube, but you can often tell synchronization has been done manually as the audio and video are out of sync (even if only slightly):
    http://www.youtube.com/watch?v=a2RA0vsZXf8&feature=related
    Many thanks!

    I'm not too familiar with video editing (yet), so please forgive me if I've misunderstood your suggestions. I think what I'm talking about would have to be done post (after shooting multiple video tracks?), and couldn't be done with video switching (live switching between multiple video feeds?). Here's a much better example of what I'm trying to do: http://www.youtube.com/watch?v=PGKErn2Zr88
    What it boils down to in my mind is precise synchronization of a new capture with something pre-recorded (be it audio or video). If no software can do this (yet), perhaps there's a way to do it with additional hardware, for example playing video on a monitor while simultaneously recording with a camera, assuming the devices can be synchronized somehow?
    Thanks!

  • Recording and playing back swfs

    I'd like to provide a users on my application the ability to record and playback what was on the swf. I can see how to capture from the camera but can't see any way to record the swf and save it as a swf (without each user buying a screen capture package).
    So I thought I might just record the basics (x,y,height,width,depth,alpha,rotation) of all the major MCs in the display list several times a second, save the details in an array and then allow the user to play the array back, creating and destroying MCs as necessary. This would be sufficient and quite efficient.
    The problem is when I loop through the display list looking for the 'object.name' of each mc I just get 'instance1, instance2' etc. I can't use that to extract the appropriate MC out of the library when I playback. How do I get a consistent name that refers to the item in the display name and the library item that I can use it to put it on stage?
    Also is there a way to create a list of all the MCs in the library?

    Just assign the objects names when you create them then use getChildByName to retreve them.
    f
    import flash.display.Sprite;
    import flash.display.DisplayObject;
    var container:Sprite = new Sprite();
    var sprite1:Sprite = new Sprite();
    sprite1.name = "sprite1";
    var sprite2:Sprite = new Sprite();
    sprite2.name = "sprite2";
    container.addChild(sprite1);
    container.addChild(sprite2);
    var target:DisplayObject = container.getChildByName("sprite1");
    trace(container.getChildIndex(target)); // 0

  • 35 mm & 16 mm films... how to capture and export?

    Ok, I shoot a lot of stuff at school on 35mm and 16mm, then get it telecined to a dv tape...
    What is the best way to capture the footage into my computer so I can keep the great picture quality (or, what is the best setting to use since I only have a consumer camcorder at home)?
    Then...
    What are the best export settings to ensure that I keep the best quality I fought for in the above question?
    Basically, I shoot some stuff, edit it, and play it back in class and it looks a thousand times worse than it did on the telecined dv tape...and I want to know how to keep that great image.
    THANK YOU SO MUCH!

    Shooting on 35 and 16...guessing you are in film school. Chapman? Aren't your professors helping at all? I mean, you are shooting 35mm! That ain't cheap.
    Telecining to DV tape? 35mm? Oh, the horror. Well, we telecined 16mm to 3/4"..far worse. And economics and all.
    BEST would be to telecine to D5, capture as DVCPRO HD for offline, then as 10-bit uncompressed HD for online...with the use of a Kona 3 capture card and a SATA Raid...but then we are talking bucks here.
    If you telecined to DV, simply capture as DV/NTSC. That is the best you are going to get with that format...which ain't great. If you could telecine to DVCPRO HD (if your school had that deck) then that would be MUCH better. But working DV/NTSC would be your best bet.
    Shane

Maybe you are looking for

  • Sound File into AIFF file, 8 Bits, 8 Khz.

    Write a small program that takes any sound file and converts it to: AIFF file, 8-bit, and 8-kHz, and a single channel. Explain each step plese.

  • Roaming between WLANs on different WLCs

    Hello, Is it possible to create the same SSIDs on two different WLCs that are not in a failover or mobility group but have an interface on the same network so that users can connect to those SSIDs automatically without having to do it manually?  For

  • Mass interfaces: BPM or RFC wrapper

    Hello My scenario is HTTP->XI->RFC. Sender interface has collection of objects. SAP side has BAPI that works with one object. For example BAPI like CHANGE, CREATE doesn't take collection. What is the best design - to emulate mass interfaces in BPM(fo

  • Unable to open a New Tab (including using the short cut key)

    I can't click for a new tab. short cut key also not working. I tried to uninstall and install it again, but it is still not working. How to solve this problem?

  • Problems with mail on iPhone 4S

    In my iPhone 4s with iOS 5.0.1(9A405) in ´All Inboxes' I can see a lot of messages with no subject or body, I cannot open it or delet, seems to be a bug, anyone else? The strange thing is that I can see this messages in All Inboxes, but cannot find i