Examples of AudioStream


Examples of ch.entwine.weblounge.common.content.movie.AudioStream

  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    AudioStream audioStream = new AudioStreamImpl();
    audioStream.setBitDepth(audioBitdepth);
    audioStream.setBitRate(bitrate);
    audioStream.setChannels(audioChannels);
    audioStream.setFormat(format);
    audioStream.setSamplingRate(audioSamplingrate);

    VideoStream videoStream = new VideoStreamImpl();
    videoStream.setBitRate(bitrate);
    videoStream.setFormat(format);
    videoStream.setFrameHeight(frameheight);
View Full Code Here

Examples of com.jme3.audio.AudioStream

        if (in.readInt() != i_WAVE)
            throw new IOException("WAVE File does not contain audio");

        readStream = stream;
        if (readStream){
            audioStream = new AudioStream();
            audioData = audioStream;
        }else{
            audioBuffer = new AudioBuffer();
            audioData = audioBuffer;
        }
View Full Code Here

Examples of com.jme3.audio.AudioStream

            AudioBuffer audioBuffer = new AudioBuffer();
            audioBuffer.setupFormat(streamHdr.getChannels(), 16, streamHdr.getSampleRate());
            audioBuffer.updateData(readToBuffer());
            return audioBuffer;
        }else{
            AudioStream audioStream = new AudioStream();
            audioStream.setupFormat(streamHdr.getChannels(), 16, streamHdr.getSampleRate());
           
            // might return -1 if unknown
            float streamDuration = computeStreamDuration();
           
            audioStream.updateData(readToStream(oggStream.isSeekable(),streamDuration), streamDuration);
            return audioStream;
        }
    }
View Full Code Here

Examples of org.red5.app.sip.AudioStream

  }
 
  private void startPublishing(IScope aScope){
    System.out.println("started publishing stream in " + aScope.getName());

    broadcastStream = new AudioStream(listenStreamName);
    broadcastStream.setPublishedName(listenStreamName);
    broadcastStream.setScope(aScope);
   
    IContext context = aScope.getContext();
   
View Full Code Here

Examples of sun.audio.AudioStream

  public void reproduceAudio(Imagen imagen) {
    AudioPlayer.player.stop(as);
    InputStream in;
    try {
      in = new FileInputStream(imagen.getSonidoURL());
      as = new AudioStream(in);
      AudioPlayer.player.start(as);
    } catch (FileNotFoundException e) {
      System.out.println(Messages.getString("util.Audio.0")); //$NON-NLS-1$
    } catch (IOException e) {
      System.out.println(Messages.getString("util.Audio.1")); //$NON-NLS-1$
View Full Code Here

Examples of sun.audio.AudioStream

            // read the sound file form resource
            InputStream in = getClass().getResourceAsStream("notify.wav");

            // create an audio stream
            AudioStream audioStream = new AudioStream(in);

            // play
            AudioPlayer.player.start(audioStream);

        } catch (Exception ex) {
View Full Code Here

Examples of sun.audio.AudioStream

              {
                AudioPlayer.player.stop( nodeHitAudio );
              }
              if( new File( "audio/drum.wav" ).exists() )
              {
                nodeHitAudio = new AudioStream( new FileInputStream( "audio/drum.wav" ) );
                AudioPlayer.player.start( nodeHitAudio );
                playSound = true;
              }
            }
            catch( FileNotFoundException e )
View Full Code Here

Examples of sun.audio.AudioStream

    try
    {
      audioStreams.clear();
      for( int i = 0; i < audioFiles.length; i++ )
      {
        AudioStream tempAudioStream = new AudioStream( new FileInputStream( "audio/" + audioFiles[i] ) );
        audioStreams.add( tempAudioStream );
      }
    }
    catch( FileNotFoundException e )
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.