1. Download our Official Android App: Forums for Android!

Apps About sounds

Discussion in 'Android Development' started by maest, Aug 7, 2010.

  1. maest

    maest Newbie
    Thread Starter
    16

    Aug 5, 2010
    23
    2
    16
    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
    38

    Apr 20, 2010
    142
    23
    38
    Student.. also software developer
    Netherlands
  3. maest

    maest Newbie
    Thread Starter
    16

    Aug 5, 2010
    23
    2
    16
    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 Newbie
    Thread Starter
    16

    Aug 5, 2010
    23
    2
    16
    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...