Java Media APIs

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 ]

Articles
Tips
  

Articles:
  • Extend JavaSound to play MP3, Ogg Vorbis, and more by The JavaZOOM Team   - [Clicks: 147]
    The JavaSound API adds audio capabilities to the Java platform. It's been part of J2SE since version 1.3 and it supports the WAV, AU, and AIFF audio formats, and provides MIDI support. It doesn't support some other audio formats, such as MP3, but it provides a flexible plugin architecture allowing any third-party vendor to add custom audio format support through the JavaSound Service Provider Interfaces (SPIs). This article deals with this plugin architecture and API, how to write and use a custom SPI implementation, how metadata such as title, artist, and copyright are exposed, and how multiple SPI implementations could be integrated in an application such as player or a game.
    http://www.onjava.com/pub/a/onjava/2004/08/11/javasound-mp3.html - Aug, 2004
  • Web Conferencing Using the Java Media Framework (JMF) by Pramod Jain, Yayati Kasralikar   - [Clicks: 186]
    Java Media Framework (JMF) is used to develop the browser-based Web conferencing application. In this architecture, the client uses two JMF applets - one for capturing video/audio from a Webcam and the other for playing video/audio feed. The capture applet continuously captures video/audio feed for a specified length of time (e.g., 10 seconds) and saves it locally in a file. This file is uploaded to a Web server using an upload servlet.
    http://www.sys-con.com/story/?storyid=45832&DE=1 - Aug, 2004
  • Making Fluid 3D Creatures with JOGL by Gerald de Jong   - [Clicks: 56]
    It's fast, it lumbers, and it's in 3D. It's Fluidiom, an exploration of push-and-pull rendered in 3D by the JOGL library. Creator Gerald de Jong shows how this lifelike creature came to be.
    http://today.java.net/pub/a/today/2004/07/20/fluidiom.html - Jul, 2004
  • Java 2D imaging for the Standard Widget Toolkit by Yannick Saillet   - [Clicks: 50]
    Most Java developers agree that there's only one domain where Swing/AWT is superior to the Eclipse platform's Standard Widget Toolkit, and that's Java 2D. Until now there has been no easy way to integrate the time-saving features of Java 2D with the superior portability, functionality, and performance of SWT's user interface components, but that's all about to change. In this follow up to his popular tutorial on migrating Swing applications to SWT, Java developer and Eclipse enthusiast Yannick Saillet shows you how easy it can be to paint Java 2D images on your SWT components and Draw2D figures.
    [Includes source code]
    http://www-106.ibm.com/developerworks/java/library/j-2dswt/ - Jun, 2004
  • Cellular automata and music by Paul Reiners   - [Clicks: 21]
    Take computers, mathematics, and the Java Sound API, add in some Java code, and you've got a recipe for creating some uniquely fascinating music. IBM Staff Software Engineer Paul Reiners demonstrates how to implement some basic concepts of algorithmic music composition in the Java language. He presents code examples and resulting MIDI files generated by the Automatous Monk program, which uses the open source jMusic framework to compose music based on mathematical structures called cellular automata.
    [Includes source code]
    http://www-106.ibm.com/developerworks/java/library/j-camusic/ - May, 2004
  • Java and Sound, Part 2 by David Flanagan   - [Clicks: 78]
    This second installment in a two-part series of excerpts from Java Examples in a Nutshell, 3rd Edition follows on last week's (which showed how to play streaming sounds in both sampled audio and MIDI formats) with examples that show how to read a simple musical score and convert it into a MIDI sequence. Author David Flanagan also shows you how to make music by directly controlling a MidiChannel of a Synthesizer, thereby bypassing the need to play a Sequence of MIDI events through a Sequencer object.
    http://www.onjava.com/pub/a/onjava/excerpt/jenut3_ch17/index1.html - Apr, 2004
  • Java and Sound, Part 1 by David Flanagan   - [Clicks: 101]
    In this first of a two-part series of excerpts from Chapter 17 of Java Examples in a Nutshell, 3rd Edition, David Flanagan illustrates some of Java's sound capabilities. In the first section, he covers how to play simple audio clips with the java.applet.AudioClip class. In the second section, he shows how to use the javax.sound.sampled and javax.sound.midi packages to load and play sound clips, how to monitor and change the playback position within a clip, and how to set audio parameters such as volume, balance, and tempo.
    http://www.onjava.com/pub/a/onjava/excerpt/jenut3_ch17/index.html - Mar, 2004
  • Juggling JOGL by Chris Adamson   - [Clicks: 40]
    This article introduces the concepts in JOGL, the Java bindings to OpenGL, that are applicable to 2D gaming. We start with the handling of coordinate spaces and how they're scaled from the OpenGL world to the screen. Then we integrated JOGL's built-in Animator class to provide motion to our objects. Finally, we introduce three critical affine transformations that allow us to draw individual objects at arbitrary locations, sizes, and rotations.
    http://today.java.net/pub/a/today/2004/03/18/jogl-2d-animation.html - Mar, 2004
  • 2D animation with image-based paths by Barry Feigenbaum, Tom Brunet   - [Clicks: 34]
    Why code your animated sequences when you can draw what you want and let a program do the rest? In this article, Barry Feigenbaum and Tom Brunet show you how to combine lossless images, Swing technology, and the authors' own Java-based animation engine to generate movement sequences for fixed objects in 2D animation.
    http://www-106.ibm.com/developerworks/library/j-animat/index.html - Jan, 2004

[Top]

Tips:
  • Using Soundbanks by Daniel H. Steinberg   - [Clicks: 9]
    … This tip describes how to install and use a soundbank. It also shows how to programatically specify which soundbank you want to use. In this tip, you will query the available soundbanks for information and compare the sounds generated by using them.
    http://java.sun.com/developer/JDCTechTips/2004/tt0309.html#2 - Mar, 2004
  • Loading and Saving Images with the Image I/O Library by John Zukowski   - [Clicks: 32]
    Introduced in J2SE 1.4, the javax.imageio package is the primary package for the Java Image I/O API. As its name implies, this package helps you read and write image files. You might wonder what's so important about this package. The fact is that you could read images with the getImage method of various classes like Toolkit and Applet since the initial release of the Java platform. But there is more to the javax.imageio package than simply reading images.
    http://java.sun.com/developer/JDCTechTips/2004/tt0217.html#1 - Feb, 2004

[Top]