A
Andrew T.
How fragile is this AudioSystem code?
'AudioTrace' aims to draw an oscilloscope style trace
of the sounds currently being played through the PC's
audio system, but it is based on the assumption that it
is getting a stereo, 16 bit signal.
E.G. the command line output on my system is..
Format: PCM_SIGNED 44100.0 Hz, 16 bit,
stereo, 4 bytes/frame, little-endian
You can browse the files here..
http://www.physci.org/test/oscilloscope/
It contains the source code (an SSCCE, of course), as
well as a launchable jar file of the same (for those
even more pushed for time!).
In subdirectory 'screenshots' you can find typical
output of bird song and Veruca Salt's 'Only You Know',
as well as a JPEG of the intro dialog.
In 'sounds' I have included the two samples from which
the birdsong screenshots were grabbed. (I do not have
any distribution rights for the music.)
Do I need to worry about other formats of sound?
What output do you get in the JOptionPane/command line?
Does the screen output look like an oscilloscope trace
from an harmonic analog signal?
( Note, the code will become an open source screensaver
as part of the saverbeans project, and can currently be
downloaded from URL above. BTW - the 'meaty part' is in
the painComponent() method of AudioPlotPanel, a default
access class included in AudioTrace.java )
AndrewT.
'AudioTrace' aims to draw an oscilloscope style trace
of the sounds currently being played through the PC's
audio system, but it is based on the assumption that it
is getting a stereo, 16 bit signal.
E.G. the command line output on my system is..
Format: PCM_SIGNED 44100.0 Hz, 16 bit,
stereo, 4 bytes/frame, little-endian
You can browse the files here..
http://www.physci.org/test/oscilloscope/
It contains the source code (an SSCCE, of course), as
well as a launchable jar file of the same (for those
even more pushed for time!).
In subdirectory 'screenshots' you can find typical
output of bird song and Veruca Salt's 'Only You Know',
as well as a JPEG of the intro dialog.
In 'sounds' I have included the two samples from which
the birdsong screenshots were grabbed. (I do not have
any distribution rights for the music.)
Do I need to worry about other formats of sound?
What output do you get in the JOptionPane/command line?
Does the screen output look like an oscilloscope trace
from an harmonic analog signal?
( Note, the code will become an open source screensaver
as part of the saverbeans project, and can currently be
downloaded from URL above. BTW - the 'meaty part' is in
the painComponent() method of AudioPlotPanel, a default
access class included in AudioTrace.java )
AndrewT.