ALSA

0.1.0

Swift wrapper for ALSA linux library
Vaidios/swift-alsa

What's New

0.1.0 - Initial release

2023-05-24T09:32:40Z

This release contains necessary API's to playback and capture audio using ALSA

SwiftyALSA

Swift Version Compatibility

Swift Platform Compatibility

SwiftyALSA is a Swift package library that acts as a seamless and efficient wrapper around the ALSA (Advanced Linux Sound Architecture) library. It enables Swift developers to conveniently integrate audio functionality in their Linux-based applications by tapping into the power of ALSA.

Key Features:

  • Sound Playback & Recording: SwiftyALSA allows developers to integrate sound playback and recording functionalities into their applications, supporting various audio formats.

  • Hardware Configuration: The library provides access to ALSA's hardware-level controls, allowing configuration of sound cards and other audio devices.

  • Intuitive Error Handling: SwiftALSA translates ALSA's error codes into Swift-friendly error objects, simplifying the process of error handling for developers.

SwiftALSA is regularly updated to ensure compatibility with the most recent versions of Swift and ALSA. It is an open-source project and welcomes contributions from the Swift and ALSA developer communities.

NOTE: Utilizing SwiftALSA requires a basic understanding of ALSA's concepts and architecture, as it's essentially a Swift interface to the underlying ALSA library.

Installation

Xcode Projects

Xcode installation is not officialy supported, as this library is for linux only.

Swift Package Manager Projects

You can add SwiftyALSA as a package dependency in your Package.swift file:

let package = Package(
    //...
    dependencies: [
        .package(
            url: "https://github.com/Vaidios/SwiftyALSA.git",
            branch: "master"
        ),
    ],
    //...
)

From there, refer to the ALSA "product" delivered by the SwiftyALSA "package" inside of any of your project's target dependencies:

targets: [
    .target(
        name: "YourLibrary",
        dependencies: [
            .product(
                name: "ALSA",
                package: "SwiftyALSA"
            ),
        ],
        ...
    ),
    ...
]

Then simply import ALSA wherever you’d like to use it.

Usage

🗺 Roadmap

  • Extending available ALSA API's, contributions are very welcome!

💻 Developing

Requirements

  • Swift 5.8

🏷 License

SwiftyALSA is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.8.0
View More Packages from this Author

Dependencies

Last updated: Fri Oct 18 2024 07:19:45 GMT-0900 (Hawaii-Aleutian Daylight Time)