×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    5

    Playing WAV from ByteArrayInputStream vs. Resource

    Greetings,
    I have a simple wav file. If I play it from an InputStream
    created from a resource it works fine. If I play it from
    an InputStream created from a ByteArrayInputStream
    that contained the same data, it plays back garbled
    (as if the gain were way, way too much).

    This is being tested on a 6620. Any suggestions/workarounds/
    similar experiences?

    I'm not using com.nokia.mid.sound.Sound, just the
    standard MIDP 2.0 calls...

    thx in advance,
    ken

  2. #2
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    90
    There shouldn't be a difference. Make sure the wav header at the beginning of the stream is kept intact or it won't be able to interpret the data.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •