https://github.com/redcode/alsound
Lagless NSSound replacement using OpenAL
https://github.com/redcode/alsound
cocoa objective-c openal uikit
Last synced: 9 days ago
JSON representation
Lagless NSSound replacement using OpenAL
- Host: GitHub
- URL: https://github.com/redcode/alsound
- Owner: redcode
- License: mit
- Created: 2018-01-28T17:56:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-28T18:01:00.000Z (about 7 years ago)
- Last Synced: 2025-02-16T06:45:16.393Z (2 months ago)
- Topics: cocoa, objective-c, openal, uikit
- Language: Objective-C
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ALSound
Copyright (C) 2013-2018 Manuel Sainz de Baranda y Goñi.
Released under the terms of the [MIT License](LICENSE).A better alternative to [NSSound](http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSound_Class) without its main problem: The lag that sometimes occurs when playing the sound for the first time. This makes ALSound more suitable for being used in little videogames.
No instructions needed, just copy _"ALSound.m"_ and _"ALSound.h"_ to your project, then add _"OpenAL.framework"_ and _"AudioToolbox.framework"_ to the _"Link Binary With Libraries"_ build phase in your project settings, and then use this class like NSSound. That's all.
If you find any bug, please, tell me.