Giter Club home page Giter Club logo

oaltouch-swift's Introduction

OpenAL Spatial Environment Demo

oalTouch uses OpenAL to play an audio file containing uncompressed (PCM) audio data. The application uses Audio File Services to manage audio file data reading. The application also uses Audio Session Services to manage interruptions (as described in Core Audio Overview).

This application shows how to:

  • Set up the environment for OpenAL usage by creating oalDevice and oalContext objects.

  • Read data from an audio file using the ExtendedAudioFile API and attach into an OpenAL buffer object.

  • Create an OpenAL source object and attach a buffer object to it.

  • Manipulate various properties of OpenAL source and listener objects.

  • Use Core Animation layers to rotate and move image objects based on user input.

  • Use Audio Session Services to register an interruption callback.

  • Use Audio Session Services to set appropriate audio session categories for recording and playback.

  • Use Audio Session Services to pause playback upon receiving an interruption, and to then resume playback if the interruption ends.

  • Use UIAccelerometer Services to provide user input from device movement.

  • Use UISlider objects as switches.

oalTouch does not demonstrate how to play multiple source objects, nor does it provide more advanced OpenAL usage.

Requirements

Build

iOS 8.3 SDK, Xcode 6.3

Runtime

iOS 8.3

Copyright (C) 2008-2015 Apple Inc. All rights reserved.

oaltouch-swift's People

Contributors

ooper-shlab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cgeffect

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.