About sounds


Last Updated:

  1. maest

    maest Member This Topic's Starter

    Joined:
    Aug 5, 2010
    Messages:
    23
    Likes Received:
    2
    Hi,

    The only way to play sounds in Android, afaik, are either using media player or using JET content. However both of these use precreated sounds to play.

    What I am looking for is for some way to just start from one sound and then, during playback to modify its pitch and maybe loudness. So, say I have a bar that I can move left right and a sound that constantly plays in the background. The more I move the bar to the right, the higher the pitch of the sound becomes. Since this should be a continuous motion I don't think a prerecorded sound would be enough. Maybe using JET content in some smart way might work, but then there would be jumps in the pitch.
     

    Advertisement
  2. id0001

    id0001 Well-Known Member

    Joined:
    Apr 20, 2010
    Messages:
    142
    Likes Received:
    23
  3. maest

    maest Member This Topic's Starter

    Joined:
    Aug 5, 2010
    Messages:
    23
    Likes Received:
    2
    Thank you, this should work.

    Also, are there any classes that deal with editing the sound? That is, starting from one short sound file, you can modify the pitch, the loudness and other characteristics?
     
  4. maest

    maest Member This Topic's Starter

    Joined:
    Aug 5, 2010
    Messages:
    23
    Likes Received:
    2
    Double posting:

    AudioTrack seems to work with PCM audio buffers. I'm not really sure what that is (pcm = pulse code modulation, according to Wikipedia), but would a wav file work?

    It would be simpler if I could just play mp3 files, but I guess this works as well.
     

Share This Page

Loading...