Soundtouch for iPhone

Has anyone been able to make http://www.surina.net/soundtouch/ work for the iPhone?

A simple Xcode demo would be helpful.

I just wanted to play the sound with some step manipulations.

THX Chris

+5
source share
1 answer

The best way to implement audio effects with SoundTouch is to use SoundStretch.

You can download the source code from here http://www.surina.net/soundtouch/sourcecode.html

SoundStretch - , SoundTouch WAV. , SoundTouch , .

SoundStretch:

  • .wav
  • :
    • -95%.. +5000%
    • () -60.. +60 (+ - 5 ).
  • Beats-Per-Second (BPM), BPM.
  • SoundStretch .wav
  • .wav /
  • SoundStretch SoundTouch .

:

NSArray *effects = [NSArray arrayWithObjects:@"-rate=-22", nil];
NSURL *audio = [self base:input output:output effects:effects];

base:output:effects :

- (NSURL *)base:(NSURL *)input output:(NSURL *)output effects:(NSArray *)effects{
    int _argc = 3 + (int)[effects count];

    const char *_argv[]={"createWavWithEffect",[[input path] UTF8String], [[output path] UTF8String],[@"" UTF8String],[@"" UTF8String],[@"" UTF8String],[@"" UTF8String],[@"" UTF8String],[@"" UTF8String],[@"" UTF8String],[@"" UTF8String],[@"" UTF8String]};

    for (int i=0; i<[effects count]; i++) {
        _argv[i+3] = [effects[i] UTF8String];
    }
    createWavWithEffect(_argc, _argv);

    // IMPORTANT! Check the file size, maybe you will need to set by yourself

    return output;
}

SoundTouch, GitHub , armv7, armv7s, arm64, i386 x86_64

https://github.com/enrimr/soundtouch-ios-library

SoundTouch , SoundStretch, SoundTouch ( libSoundTouch.a ) Xcode.

SWIFT:

SWIFT .h, .h <Your-Project-Name>-Bridging-Header-File.h ( "Swift Compiler" "Objective C Bridging Header" )

$(SRCROOT)/<Your-Project-Name>-Bridging-Header.h

SoundTouch.

Objective-C:

#include "SoundTouch.h" 

.

0

All Articles