# adamcichy/SwiftySound

SwiftySound is a simple library that lets you play sounds with a single line of code.

Repository: https://github.com/adamcichy/SwiftySound
Canonical: https://ross.abutalabs.com/products/swiftysound
Language: Swift
License: MIT
License Family: permissive
Topics: swift, sound, play-sounds, swifty-sound, loop, xcode, ios, macos, tvos, cocoapods, carthage, audio, player, spm
Last push: 2024-03-09T23:38:28+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3480, "days_push": 907, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1256, forks 101 (observed 2026-08-28T04:04:09.304955+00:00)

## What it is
SwiftySound is a lightweight Swift library that wraps AVFoundation to let iOS, macOS, tvOS, and visionOS apps play sounds with a single line of code. It supports looping, simultaneous playback, volume control, global enable/disable, and playback completion callbacks.

## Use cases
- play a sound effect in an iOS app with one line of code
- loop background music infinitely in a Swift game
- play the same sound multiple times simultaneously
- globally mute or enable all sounds in an app
- run a callback when a sound finishes playing
- adjust the volume of individual sound instances

## When to choose
- you need simple, minimal sound playback in a Swift app without complex audio APIs
- you want looping, volume, and mute support with almost no boilerplate
- you target iOS, macOS, or tvOS and prefer a small dependency with SPM/CocoaPods/Carthage support

## When to avoid
- you need advanced audio features like mixing, effects, streaming, or precise timing
- you need AVAudioSession category control on macOS, which is unsupported
- you are building a non-Swift or non-Apple-platform project

## Facets
- artifact type: library
- maturity: stable
- function: audio-processing
- domain: mobile-development, cross-platform
- platform: cross-platform
- tags: swift, sound-player, avfoundation, cocoapods, spm, game-audio, looping-playback, audio, ios, macos

## Member repositories
- adamcichy/SwiftySound (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:09.304955+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:07:15.010411+00:00, confidence not recorded.
  - readme: https://github.com/adamcichy/SwiftySound (fetched 2026-08-28T04:04:09.304955+00:00, sha 3145f75f9ba3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
