Giter Site home page Giter Site logo

ales-tsurko / learningcoreaudiowithswift2.0 Goto Github PK

View Code? Open in Web Editor NEW
160.0 14.0 43.0 244 KB

All the examples of the Learning Core Audio book rewritten with Swift 2.0

Swift 70.37% Objective-C 0.53% C++ 21.55% Objective-C++ 0.80% C 6.75%
coreaudio swift audio

learningcoreaudiowithswift2.0's Introduction

LearningCoreAudioWithSwift2.0

Every example from the Learning Core Audio book rewritten with Swift 2.0.

Known issues

CH08_AUGraphInput

The output can be silent when you use different devices for the input and output. As a workaround, try to change the size of the ring buffer.

CH11_MIDIWifiSource

The MIDIWifiSource crashes on iOS 9 + OS X 10.10. I was unable to test it with different OS's versions.

In case you're interesting in debugging it, the crash happens when the connection is initialized:

let connection = MIDINetworkConnection(host: host)

I spend too much time for open source, but too little for commercial stuff. As the result I always lack money. If you like some of my projects, or music, or some of my contributions helped you, please consider donation.

  • Bitcoin: bc1q0p7tmxyyd0pn7qsfxwlm00ncazdzz24p8lagqp
  • Ethereum: 0x55B6805f462e19aaBdB304bc85F94099eac060CE

learningcoreaudiowithswift2.0's People

Contributors

ales-tsurko avatar dimagimburg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learningcoreaudiowithswift2.0's Issues

can i record 3 audio same time?

i am playing youtube video in uiview with Youtube Player Helper Pods.
can i save youtube video sound + my voice + some effect (like reverb)?

CH01_CAMetaData - CFDictionaryRef isn't a pointer?

Hi,
using you're first sample code, I had an issue to get the values from the 'kAudioFilePropertyInfoDictionary'

In code line 35, I replaced:

var dictionary: UnsafePointer? = nil

--> var dictionary: CFDictionary? = nil

assuming the value you get from the following code lines is actually a Dictionary of type [String:Any] and not an 'UnsafePointer

theErr = AudioFileGetProperty(audiofile!, kAudioFilePropertyInfoDictionary, &dictionarySize, &dictionary)
assert(theErr == noErr)

   if let audioMetaData = dictionary as? [String:Any] {
    print(audioMetaData)
   }

Output window gives me now:

Printing description of audioMetaData:
▿ Optional<Dictionary<String, Any>>
▿ some : 1 element
▿ 0 : 2 elements
- key : "approximate duration in seconds"
- value : 1.622
Optional(["approximate duration in seconds": 1.622])
Program ended with exit code: 0

Kind regards
Andre

hi my friend.

How do I record my voice with a background song playing?

ı think you solve my problem. because your sample look very nice.

Get audio input buffers and put the output audio into the same buffers as well. i need a player to play the background song and it can mix itself and record it.
will you help me? it can be any PODS or any solution. I need it too much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.