PRB: Unable to Play .Wav File from Applet or AudioClip

Last reviewed: January 29, 1998
Article ID: Q178707
The information in this article applies to:
  • Microsoft Visual J++, versions 1.0, 1.1
  • SDK for Java, versions 1.51, 2.0, 2.01

SYMPTOMS

When an Applet tries to play a .wav file from an applet using the Applet.play() method or the AudioClip.play() method, either nothing happens or you get the following console output:

   NativeAudioStream: invalid file type

CAUSE

The JDK 1.02 and JDK 1.1x APIs are able to play only AU files. The AU files need to be 8 bit, ulaw, 8000 Hz, and one channel.

RESOLUTION

Use a product that is capable of creating AU files according to these specifications. Convert the .wav file and change the URL to point to the AU file.

STATUS

This behavior is by design.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/
   http://support.microsoft.com/support/java/

Keywords          : VJMisc
Technology        : kbInetDev internet
Version           : WINDOWS:1.0,1.1,1.51,2.0,2.01
Platform          : WINDOWS
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.