oalTouch
===========================================================================
DESCRIPTION:
oalTouch demonstrates basic use of OpenAL, Audio File Services, Core Animation, and Core Graphics Services on the iPhone for manipulating sound in a spatial environment.
The code in 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.
===========================================================================
RELATED INFORMATION:
Core Audio Overview, June 2008
===========================================================================
SPECIAL CONSIDERATIONS:
oalTouch demonstrates use of the OpenAL framework for positional audio, and as such is best suited for a stereo listening environment (headphones, external speakers, etc.)
===========================================================================
BUILD REQUIREMENTS:
iOS 4.0 SDK
===========================================================================
RUNTIME REQUIREMENTS:
iPhone OS 3.2 and later
===========================================================================
PACKAGING LIST:
MyOpenALSupport.h
MyOpenALSupport.h provides helper functions for various common OpenAL-related tasks (opening files for data read, creating devices and context objects, etc.)
oalPlayback.h
oalPlayback.m
The oalPlayback class defines the audio playback object for the application. The object responds to and manages of the OpenAL environment
oalTouchAppDelegate.h
oalTouchAppDelegate.m
The oalTouchAppDelegate class defines the application delegate object, responsible for handling accelerometer input and adding the application's view to the application window.
oalSpatialView.h
oalSpatialView.m
The oalSpatialView class defines the view object, responsible for handling user interaction and displaying the representation of the OpenAL environment.
================================================================================
Copyright (C) 2008-2010 Apple Inc. All rights reserved.
没有合适的资源?快使用搜索试试~ 我知道了~
IOS应用源码之OPENAL的使用Demo .zip
共92个文件
png:28个
pbxbtree:8个
hmap:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 43 浏览量
2022-07-12
10:06:03
上传
评论
收藏 3.7MB ZIP 举报
温馨提示
IOS应用源码之OPENAL的使用Demo .zip
资源推荐
资源详情
资源评论
收起资源包目录
IOS应用源码之OPENAL的使用Demo .zip (92个子文件)
oalTouch
main.m 3KB
sound.caf 119KB
images
speaker_off.png 3KB
Icon-Small@2x.png 1010B
Default.png 15KB
iTunesArtwork 5KB
Icon.png 1007B
Icon-Small.png 918B
stagebg.png 4KB
listener.png 3KB
instructions.png 5KB
Icon@2x.png 1KB
Icon-Small-50.png 992B
pause.png 3KB
speaker_on.png 4KB
Icon-72.png 1KB
play.png 3KB
oalTouch.xcodeproj
project.pbxproj 22KB
king.mode1v3 40KB
king.pbxuser 8KB
oalTouch_Prefix.pch 2KB
background.m4a 1.35MB
Info.plist 1KB
en.lproj
MainWindow.xib 19KB
Classes
oalTouchAppDelegate.m 4KB
oalPlayback.m 10KB
MyOpenALSupport.h 3KB
oalSpatialView.m 11KB
MyOpenALSupport.c 6KB
oalSpatialView.h 4KB
oalPlayback.h 4KB
oalTouchAppDelegate.h 3KB
build
oalTouch.build
Debug-iphoneos
oalTouch.build
oalTouch-project-headers.hmap 962B
oalTouch-generated-files.hmap 121B
oalTouch~.dep 6KB
oalTouch.xcent 414B
oalTouch-own-target-headers.hmap 793B
build-state.dat 57KB
oalTouch.dep 6KB
build-state~.dat 57KB
oalTouch.hmap 2KB
Objects-normal
armv6
oalPlayback.o 35KB
oalTouchAppDelegate.o 27KB
oalSpatialView.o 37KB
oalTouch.LinkFileList 608B
main.o 6KB
MyOpenALSupport.o 11KB
oalTouch-all-target-headers.hmap 793B
oalTouch.pbxindex
subclasses.pbxbtree 2KB
categories.pbxbtree 1KB
symbols0.pbxsymbols 661KB
files.pbxbtree 3KB
protocols.pbxbtree 2KB
imports.pbxbtree 9KB
decls.pbxbtree 154KB
cdecls.pbxbtree 156KB
refs.pbxbtree 118KB
pbxindex.header 24B
strings.pbxstrings
control 256KB
strings 332KB
Debug
oalTouch.build
oalTouch~.dep 4KB
build-state.dat 6KB
oalTouch.dep 4KB
build-state~.dat 6KB
Debug-iphoneos
oalTouch.app.dSYM
Contents
Resources
DWARF
oalTouch 48KB
Info.plist 588B
oalTouch.app
speaker_off.png 3KB
Icon-Small@2x.png 893B
Default.png 14KB
sound.caf 119KB
iTunesArtwork 5KB
Icon.png 891B
Icon-Small.png 854B
stagebg.png 5KB
CodeResources 28B
embedded.mobileprovision 7KB
listener.png 3KB
instructions.png 4KB
background.m4a 1.35MB
Icon@2x.png 995B
Icon-Small-50.png 880B
pause.png 3KB
_CodeSignature
CodeResources 2KB
ResourceRules.plist 485B
PkgInfo 8B
oalTouch 50KB
Info.plist 909B
en.lproj
MainWindow.nib 3KB
speaker_on.png 4KB
Icon-72.png 925B
play.png 3KB
ReadMe.txt 3KB
共 92 条
- 1
资源评论
- sunwei172023-02-10资源很赞,希望多一些这类资源。
reg183
- 粉丝: 1811
- 资源: 1万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功