All Projects → jessesquires → Jsqsystemsoundplayer

jessesquires / Jsqsystemsoundplayer

Licence: other
A fancy Obj-C wrapper for Cocoa System Sound Services

Labels

Projects that are alternatives of or similar to Jsqsystemsoundplayer

Swift Video Generator
Stars: ✭ 517 (-11.02%)
Mutual labels:  audio
Libjitsi
Advanced Java media library for secure real-time audio/video communication.
Stars: ✭ 536 (-7.75%)
Mutual labels:  audio
Bluez Alsa
Bluetooth Audio ALSA Backend
Stars: ✭ 568 (-2.24%)
Mutual labels:  audio
Vgmstream
vgmstream - A library for playback of various streamed audio formats used in video games.
Stars: ✭ 524 (-9.81%)
Mutual labels:  audio
Ffsubsync
Automagically synchronize subtitles with video.
Stars: ✭ 5,167 (+789.33%)
Mutual labels:  audio
Soundfingerprinting
Open source audio fingerprinting in .NET. An efficient algorithm for acoustic fingerprinting written purely in C#.
Stars: ✭ 554 (-4.65%)
Mutual labels:  audio
Python Sounddevice
🔉 Play and Record Sound with Python 🐍
Stars: ✭ 512 (-11.88%)
Mutual labels:  audio
React Player
A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
Stars: ✭ 5,931 (+920.83%)
Mutual labels:  audio
Blackhole
BlackHole is a modern macOS virtual audio driver that allows applications to pass audio to other applications with zero additional latency.
Stars: ✭ 6,834 (+1076.25%)
Mutual labels:  audio
Mixedreality Webrtc
MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
Stars: ✭ 568 (-2.24%)
Mutual labels:  audio
Camomile
An audio plugin with Pure Data embedded that allows to load and to control patches
Stars: ✭ 527 (-9.29%)
Mutual labels:  audio
Hdmi
Send video/audio over HDMI on an FPGA
Stars: ✭ 533 (-8.26%)
Mutual labels:  audio
Axiom
An FFmpeg GUI for Windows
Stars: ✭ 560 (-3.61%)
Mutual labels:  audio
Freac
The fre:ac audio converter project
Stars: ✭ 518 (-10.84%)
Mutual labels:  audio
Monstercat Visualizer
A real time audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
Stars: ✭ 571 (-1.72%)
Mutual labels:  audio
Whipper
Python CD-DA ripper preferring accuracy over speed
Stars: ✭ 517 (-11.02%)
Mutual labels:  audio
Chromaprint
C library for generating audio fingerprints used by AcoustID
Stars: ✭ 553 (-4.82%)
Mutual labels:  audio
Audio Visualizer Android
🎵 [Android Library] A light-weight and easy-to-use Audio Visualizer for Android.
Stars: ✭ 581 (+0%)
Mutual labels:  audio
Wavesurfer.js
Navigable waveform built on Web Audio and Canvas
Stars: ✭ 5,905 (+916.35%)
Mutual labels:  audio
Hysteriaplayer
Objective-C audio player, sitting on top of AVPlayer
Stars: ✭ 568 (-2.24%)
Mutual labels:  audio

JSQSystemSoundPlayer

Build Status Version Status license MIT codecov Platform Carthage compatible

A fancy Obj-C wrapper for Cocoa System Sound Services, for iOS and OS X.

About

This library is a light-weight component to play sound effects in your app. To determine your audio needs, see Best Practices for iOS Audio.

tl;dr

When your sole audio need is to play alerts and user-interface sound effects, use Core Audio’s System Sound Services.

Your sound files must be:

  • No longer than 30 seconds in duration
  • In linear PCM or IMA4 (IMA/ADPCM) format
  • Packaged in a .caf, .aif, or .wav file

If this does not fit your needs, then this library is not for you! See AVAudioPlayer, instead.

screenshot ios     screenshot osx

Usage

JSQSystemSoundPlayer *sharedPlayer = [JSQSystemSoundPlayer sharedPlayer];

// Play a built-in sound
[sharedPlayer playSoundWithSoundID:1000 // new mail sound
                           asAlert:YES
                        completion:^{
                            NSLog(@"Sound finished playing. Executing completion block...");
                        }];

// Play a sound from a file
[sharedPlayer playSoundWithFilename:@"Basso"
                      fileExtension:kJSQSystemSoundTypeAIF
                         completion:^{
                             NSLog(@"Sound finished playing. Executing completion block...");
                         }];

Features

  • Play sound effects and alert sounds with a single line of code
  • "Play" vibration (if available on device)
  • Block-based completion handlers
  • Integration with NSUserDefaults to globally toggle sound effects in your app
  • Efficient memory management
  • Caches sounds (SystemSoundID instances) and purges on memory warning
  • Works with Swift!

Requirements

  • Xcode 9+
  • iOS 9.0+
  • tvOS 9.0+
  • macOS 10.10+

Installation

CocoaPods (recommended)

pod 'JSQSystemSoundPlayer'

Carthage

github "jessesquires/JSQSystemSoundPlayer"

Documentation

Read the docs. Generated with jazzy. Hosted by GitHub Pages.

Generate

$ ./build_docs.sh

Preview

$ open index.html -a Safari

Contributing

Interested in making contributions to this project? Please review the guides below.

Also, consider sponsoring this project or buying my apps! ✌️

Credits

Created and maintained by @jesse_squires.

License

JSQSystemSoundPlayer is released under an MIT License. See LICENSE for details.

Copyright © 2013-present Jesse Squires.

Please provide attribution, it is greatly appreciated.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].