Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it is crashing while setting NEW filed like Pitch #1

Open
anil03 opened this issue Jun 30, 2015 · 4 comments
Open

it is crashing while setting NEW filed like Pitch #1

anil03 opened this issue Jun 30, 2015 · 4 comments

Comments

@anil03
Copy link

anil03 commented Jun 30, 2015

I am developing an app. In this app i want to set Tempo and Pitch of app.
When i am setting pitch of app it is crashing. So Will you please let me know how do i set also pitch of the song while playing.

@mwhagedorn
Copy link
Owner

I need a little more specifics in order to be helpful

@anil03
Copy link
Author

anil03 commented Jul 1, 2015

Like you defined the Float variable as Tempo in FBSoundTouchAVAssetPlayer. So i declared one more variable for "Pitch" as float variable. After that i defined Getter and Setter for variable Tempo.
i set initial value as 0 in setupSoundTouch method.
And in FilteringCallback method i defined the "soundTouchEngine.setPitch( pitch );"
From UI i am setting the value of Pitch using slider between value. When i do, it crashed

self.filteringCallback = ^(FBAVAssetPlayer player, char *srcBuffer, UInt32 srcBytesAvailable, char *dstBuffer, UInt32 dstBufferCapacity, UInt32 *dstBytesWritten )
{
soundTouchEngine.setTempoChange( tempo );
soundTouchEngine.setPitch( pitch );
soundTouchEngine.putSamples((soundtouch::SAMPLETYPE
)srcBuffer, srcBytesAvailable / 4);
UInt32 samplesWritten = soundTouchEngine.receiveSamples((soundtouch::SAMPLETYPE*) dstBuffer, 32768 / 4 );
*dstBytesWritten = samplesWritten * 4;
};
saying bad access.

So please let me know how do i use it Pitch and Tempo on runtime in ios

@anil03
Copy link
Author

anil03 commented Jul 1, 2015

When i tried to add into NEW xcode project as you said i am getting this error

ld: warning: ignoring file /Users/abhishekpanjikar/Documents/Developer/Xcode_Projects/AudioDemo/AudioDemo/HelperFile/FBAudioLib/SoundTouch.framework/SoundTouch, missing required architecture arm64 in file /Users/abhishekpanjikar/Documents/Developer/Xcode_Projects/AudioDemo/AudioDemo/HelperFile/FBAudioLib/SoundTouch.framework/SoundTouch (3 slices)

screen shot 2015-07-01 at 3 13 48 pm

@mitkhatri
Copy link

Any one get solution of this? Please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants