24 bit signed integer binary conversion help needed

Discussion in 'Python' started by Robert Somerville, Jan 8, 2010.

  1. thanks Grant, your sext24 function does the trick (this Python newbie
    thanks you a lot ...)

    so i loop on d=wave.readframes(1)
    call dd=sext24(d) on the frame read , then
    ddd=struct.unpack("<%ul" % 1 ,dd)
    unpack(dd) the output of sext24 into a 32bit integer (seems to do the
    trick correctly for signed 24 bit integers ....)
    -thanks , bob
    Robert Somerville, Jan 8, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fangs
    Replies:
    3
    Views:
    9,753
    darshana
    Oct 26, 2008
  2. Replies:
    14
    Views:
    2,056
    CBFalconer
    Jun 18, 2005
  3. Replies:
    12
    Views:
    563
    Richard Heathfield
    Apr 8, 2007
  4. Robert Somerville
    Replies:
    5
    Views:
    2,148
    Irmen de Jong
    Jan 8, 2010
  5. Rob1bureau
    Replies:
    1
    Views:
    794
    joris
    Feb 27, 2010
Loading...

Share This Page