Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Recording sound in Java

Options
  • 05-03-2003 6:25pm
    #1
    Closed Accounts Posts: 741 ✭✭✭


    I'm recording from a Microphone in Java 16 bit format with JMF2 on J2SE 1.4 as part of a project. It goes into a ByteArrayOutputStream which then can be converted to a Byte array. It sounds fine when played back but my problem is when I graph these Byte values, it looks like they are being truncated after being put into 8 bit Bytes. It's not the graph method because this takes Ints which are 4 Bytes. Does anyone know if this is correct and/or a way to record 16 bit samples differently albeit correctly? Thanks in advance.


Advertisement