Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-28-2009, 02:43 PM   #1 (permalink)
LunarMoon
see my iOS apps! :D
 
Join Date: Sep 2008
Location: Europe
Posts: 280
Default Scrubbing the audio... is that possible?

Hi, I am doing a game where I have to move boxes on the iphone screen. What I am tring to do is to play a sound while the user is pushing the box and stop the sound when the user stops pushing.

Here is the problem.

I have an audio file that can be put in loop to last the time that is needed, I mean, to be played as long as the user keeps pushing the box.

As playing the sound and moving the box on the same thread freezes the game I have done it on another thread. But I do not like the result. Even working correctly the sound seems to be not syncrhonized with the box movement.

What I need is a kind of scrub on the audio. Imagine using an audio editing program and going forward and back on an audio file, manually, and listening the sound as you move the slider. I mean, listening the sound on the speed you are scrubbing (i.e. moving the slider).

In other words... playing the audio at different speeds and stopping as soon as the user stops sliding.

Any ideas on how to do that?

Last edited by LunarMoon; 01-28-2009 at 02:48 PM.
LunarMoon is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,680
Threads: 89,158
Posts: 380,400
Top Poster: BrianSlick (7,110)
Welcome to our newest member, davinmarke
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:47 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.