Which value should I use for the length of the file in AudioOutputStreams if the length is not known in advance?
If the length of the file is not known in advance, you should use the value AudioSystem.NOT_SPECIFIED. Pass this value to the constructors of AudioOutputStream subclasses directly or use it in requesting an AudioOutputStream instance via AudioSystemShadow.getAudioOutputStream(). Note that not knowing the length makes it impossible to use OutputStreams as target for some audio file types (File targets should work always).
Related Questions
- I have some tables that have an Incorrect record length error when I insert them in the BOM File Maintenance window. How can I correct that?
- Which value should I use for the length of the file in AudioOutputStreams if the length is not known in advance?
- How do I save an Invoice on my computer (Commonly known as download as a PDF file)?