Rupert  Beatty

Rupert Beatty

1665712500

Aural-player: An Audio Player for MacOS, inspired By Winamp

Aural-player

An Audio Player for MacOS, inspired By Winamp

Overview

Aural Player is an audio player for macOS. Inspired by the classic Winamp player for Windows, it is designed to be easy to use and customizable, with support for a wide variety of popular audio formats and powerful sound tuning capabilities.

Flexible UIPersonalization
With Winamp-like modularity and multiple app presentation modes, you can lay out the app to suit your workspace, reduce it to a tiny widget, or tuck it away in the macOS menu bar.Personalize Aural Player with exactly the colors and fonts that define your creative tastes.
Extensive audio formats supportSound tuning and monitoring
By harnessing the power of FFmpeg, Aural Player supports a wide variety of popular audio formats, in addition to all macOS Core Audio formats.With several built-in effects and support for Audio Unit (AU) plug-ins, sound tuning and monitoring possibilities are endless.

How it works (under the hood)

Aural Player uses AVFoundation's AVAudioEngine framework (and some low-level Core Audio) for playback, effects, and visualization, and uses FFmpeg libraries to decode formats not native to macOS.

The UI is built on top of AppKit with views defined in XIBs (no SwiftUI).

The code is written entirely in Swift (approximately 100,000 lines of code).

How it works screenshot

Read more about it here.

Limitations

  • Currently, Aural does not play online streams. However, this feature has been requested and I am strongly considering implementing it for version 4.x.
  • Aural does not play protected content (for example, Apple's M4P or Audible's AAX). There are no plans to implement this.

Key features

(Comprehensive feature list here)

  • Supports all Core Audio formats and several non-native formats: FLAC, Vorbis, Monkey's Audio (APE), Opus, & many more
  • Supports M3U / M3U8 playlists
  • Playback: Bookmarking, segment looping, custom seek intervals, per-track last position memory, chapters support, autoplay, resume last played track.
  • Effects: Built-in effects (incl. equalizer), Audio Unit (AU) plug-in support, built-in / custom presets, per-track settings memory.
  • Playlist: Grouping by artist/album/genre, searching, sorting, type selection.
  • Track information: ID3, iTunes, WMA, Vorbis Comment, ApeV2, etc. Cover art (with MusicBrainz lookups), lyrics, file system and audio data. Option to export.
  • Track lists: Favorites list, recently added and recently played lists.
  • Visualizer: 3 different visualizations that dance to the music, with customizable colors.
  • UI: Modular interface, fully customizable fonts and colors (with gradients), built-in / custom window layouts, configurable window snapping / docking / spacing / corner radius, menu bar mode, control bar (widget) mode.
  • Usability: Configurable media keys support, swipe/scroll gesture recognition, remote control from Control Center, headphones, and media control devices / apps.

Roadmap

Version 4.0

As of May 21, 2022, version 4.0 is in active development, and may bring several improvements.

Interested in seeing what's going on with the development of v4.0 ? Check out the v4.0 branch!


In addition to v4.0, the following features may be implemented in the future:

  • Replay gain.
  • Crossfading between tracks.
  • Gapless playback.

Other goals

  • More extensive unit testing.
  • More comprehensive documentation.
  • Better source code commenting.

Download

Latest release

See all releases

Compatibility

This table lists the minimum required Aural Player version for your hardware and macOS version. It is always recommended to use the latest app version, regardless of your hardware / macOS version.

 Intel (x86_64)Apple silicon (arm64)
macOS 10.12 - 10.151.0.0(N/A)
macOS 11.x (Big Sur)2.3.03.0.0
macOS 12.x (Monterey)2.3.03.0.0

NOTES:

Version 3.0.0 and all subsequent releases are universal binaries, i.e. capable of running on both Intel and Apple Silicon Macs.

Due to limited time, I can only officially support macOS Big Sur and Monterey going forward. The app should still work on older systems (going back to Sierra), but I can no longer make guarantees or troubleshoot issues on older systems.

Installation

  1. Mount the AuralPlayer-x.y.z.dmg image file.
  2. From within the mounted image, copy Aural.app to your local drive (e.g. Applications folder).
  3. Run the copy from your local drive. You will likely see a security warning and the app will not open because the app's developer is not recognized by macOS.
  4. Go to System Preferences > Security & Privacy > General > Open anyway, to allow Aural.app to open.

NOTE - Please don't run the app directly from within the image. Copy it outside and run the copy.

Media keys support

Your Mac media keys should work with Aural right out of the box (assuming you granted Aural Accessibility permissions on first app launch), but if for some reason the media keys don't work, follow the steps listed here.

Building the app

All you need is Xcode 12.2+ and the source code (a working knowledge of Swift would help !). It is recommended to use the source code from the latest release (as opposed to the master branch) as code between releases can be buggy / unstable.

Read the quick start guide for more details.

Documentation

All the documentation can be found on the wiki.

Some pages to get you started

How To's

Handy keyboard shortcuts

Building and running Aural Player (quick start guide)

Developer reference

Screenshots

Default window layout

Vertical full stack window layout screenshot

Expanded Art player view

Expanded Art player view demo

Hosting Audio Units (AU) plug-in "TDR Nova" Equalizer by Tokyo Dawn Labs

Audio Units demo GIF

Running in Menu Bar mode

Menu Bar Player screenshot

Running in Control Bar mode

Control Bar Player screenshot

Control Center integration (macOS Big Sur)

Control Center integration 1 screenshot

Control Center integration 2 screenshot

Font schemes

Font schemes demo

Color schemes

Color schemes demo

Customizing the player view

Player view

Customizing the window corner radius (up to 25px)

Window corner radius demo

Enabling and disabling effects

Enabling and disabling effects demo

Segment loop playback

Segment loop playback demo

Detailed track info

Detailed track info

Changing the window layout

Changing the window layout demo

Visualizer

Visualizer.gif

Known issues (and solutions)

The text is too small on my Mac screen.

Poor audio quality when using Bluetooth headsets.

My media keys don't work with Aural Player

Contact and conversation

Email: kartikv2017@gmail.com

GitHub Issues https://github.com/kartik-venugopal/aural-player/issues.

The app is what it is today largely thanks to the numerous bug reports and valuable feedback of users over the years. I urge you to file issues for any bugs you encounter or for features / behavior you would like to see implemented. I am generally pretty good at responding to issues, and at the very least, I will read, contemplate, and respond.

How to contribute

Interested in contributing to this awesome project ?!

I would love to localize Aural Player so that it is more comfortable to use for users who prefer other languages. I could definitely use help translating Aural Player's text into languages such as German, French, Spanish, Italian, Chinese, Japanese, etc (and any others that you can help with).

Please email me if you're interested in helping with this !

NOTE - I am not looking for help with app development at the moment, but if this changes, I will post an update.

Third party code attributions

  • FFmpeg (used to decode audio formats not natively supported on macOS)
  • MediaKeyTap (used to respond to media keys)
  • RangeSlider (used in the Filter effects unit to specify frequency ranges)

Contributor attributions

App user yougotwill made numerous suggestions for improvements and features, provided a lot of valuable feedback, and designed the Poolside.fm theme.

Fellow GitHub member dun198 made significant contributions towards this project - performance optimizations, UX improvements, etc.

I am also hugely grateful to all the app users who have filed bug reports and feature requests, and provided valuable feedback.

Watch out for v4.0 - an improved app version, expected to come out later this year ! Read about it here.

Download Details:

Author: Kartik-venugopal
Source Code: https://github.com/kartik-venugopal/aural-player 
License: MIT license

#swift #audio #music #macos 

What is GEEK

Buddha Community

Aural-player: An Audio Player for MacOS, inspired By Winamp
Rupert  Beatty

Rupert Beatty

1665712500

Aural-player: An Audio Player for MacOS, inspired By Winamp

Aural-player

An Audio Player for MacOS, inspired By Winamp

Overview

Aural Player is an audio player for macOS. Inspired by the classic Winamp player for Windows, it is designed to be easy to use and customizable, with support for a wide variety of popular audio formats and powerful sound tuning capabilities.

Flexible UIPersonalization
With Winamp-like modularity and multiple app presentation modes, you can lay out the app to suit your workspace, reduce it to a tiny widget, or tuck it away in the macOS menu bar.Personalize Aural Player with exactly the colors and fonts that define your creative tastes.
Extensive audio formats supportSound tuning and monitoring
By harnessing the power of FFmpeg, Aural Player supports a wide variety of popular audio formats, in addition to all macOS Core Audio formats.With several built-in effects and support for Audio Unit (AU) plug-ins, sound tuning and monitoring possibilities are endless.

How it works (under the hood)

Aural Player uses AVFoundation's AVAudioEngine framework (and some low-level Core Audio) for playback, effects, and visualization, and uses FFmpeg libraries to decode formats not native to macOS.

The UI is built on top of AppKit with views defined in XIBs (no SwiftUI).

The code is written entirely in Swift (approximately 100,000 lines of code).

How it works screenshot

Read more about it here.

Limitations

  • Currently, Aural does not play online streams. However, this feature has been requested and I am strongly considering implementing it for version 4.x.
  • Aural does not play protected content (for example, Apple's M4P or Audible's AAX). There are no plans to implement this.

Key features

(Comprehensive feature list here)

  • Supports all Core Audio formats and several non-native formats: FLAC, Vorbis, Monkey's Audio (APE), Opus, & many more
  • Supports M3U / M3U8 playlists
  • Playback: Bookmarking, segment looping, custom seek intervals, per-track last position memory, chapters support, autoplay, resume last played track.
  • Effects: Built-in effects (incl. equalizer), Audio Unit (AU) plug-in support, built-in / custom presets, per-track settings memory.
  • Playlist: Grouping by artist/album/genre, searching, sorting, type selection.
  • Track information: ID3, iTunes, WMA, Vorbis Comment, ApeV2, etc. Cover art (with MusicBrainz lookups), lyrics, file system and audio data. Option to export.
  • Track lists: Favorites list, recently added and recently played lists.
  • Visualizer: 3 different visualizations that dance to the music, with customizable colors.
  • UI: Modular interface, fully customizable fonts and colors (with gradients), built-in / custom window layouts, configurable window snapping / docking / spacing / corner radius, menu bar mode, control bar (widget) mode.
  • Usability: Configurable media keys support, swipe/scroll gesture recognition, remote control from Control Center, headphones, and media control devices / apps.

Roadmap

Version 4.0

As of May 21, 2022, version 4.0 is in active development, and may bring several improvements.

Interested in seeing what's going on with the development of v4.0 ? Check out the v4.0 branch!


In addition to v4.0, the following features may be implemented in the future:

  • Replay gain.
  • Crossfading between tracks.
  • Gapless playback.

Other goals

  • More extensive unit testing.
  • More comprehensive documentation.
  • Better source code commenting.

Download

Latest release

See all releases

Compatibility

This table lists the minimum required Aural Player version for your hardware and macOS version. It is always recommended to use the latest app version, regardless of your hardware / macOS version.

 Intel (x86_64)Apple silicon (arm64)
macOS 10.12 - 10.151.0.0(N/A)
macOS 11.x (Big Sur)2.3.03.0.0
macOS 12.x (Monterey)2.3.03.0.0

NOTES:

Version 3.0.0 and all subsequent releases are universal binaries, i.e. capable of running on both Intel and Apple Silicon Macs.

Due to limited time, I can only officially support macOS Big Sur and Monterey going forward. The app should still work on older systems (going back to Sierra), but I can no longer make guarantees or troubleshoot issues on older systems.

Installation

  1. Mount the AuralPlayer-x.y.z.dmg image file.
  2. From within the mounted image, copy Aural.app to your local drive (e.g. Applications folder).
  3. Run the copy from your local drive. You will likely see a security warning and the app will not open because the app's developer is not recognized by macOS.
  4. Go to System Preferences > Security & Privacy > General > Open anyway, to allow Aural.app to open.

NOTE - Please don't run the app directly from within the image. Copy it outside and run the copy.

Media keys support

Your Mac media keys should work with Aural right out of the box (assuming you granted Aural Accessibility permissions on first app launch), but if for some reason the media keys don't work, follow the steps listed here.

Building the app

All you need is Xcode 12.2+ and the source code (a working knowledge of Swift would help !). It is recommended to use the source code from the latest release (as opposed to the master branch) as code between releases can be buggy / unstable.

Read the quick start guide for more details.

Documentation

All the documentation can be found on the wiki.

Some pages to get you started

How To's

Handy keyboard shortcuts

Building and running Aural Player (quick start guide)

Developer reference

Screenshots

Default window layout

Vertical full stack window layout screenshot

Expanded Art player view

Expanded Art player view demo

Hosting Audio Units (AU) plug-in "TDR Nova" Equalizer by Tokyo Dawn Labs

Audio Units demo GIF

Running in Menu Bar mode

Menu Bar Player screenshot

Running in Control Bar mode

Control Bar Player screenshot

Control Center integration (macOS Big Sur)

Control Center integration 1 screenshot

Control Center integration 2 screenshot

Font schemes

Font schemes demo

Color schemes

Color schemes demo

Customizing the player view

Player view

Customizing the window corner radius (up to 25px)

Window corner radius demo

Enabling and disabling effects

Enabling and disabling effects demo

Segment loop playback

Segment loop playback demo

Detailed track info

Detailed track info

Changing the window layout

Changing the window layout demo

Visualizer

Visualizer.gif

Known issues (and solutions)

The text is too small on my Mac screen.

Poor audio quality when using Bluetooth headsets.

My media keys don't work with Aural Player

Contact and conversation

Email: kartikv2017@gmail.com

GitHub Issues https://github.com/kartik-venugopal/aural-player/issues.

The app is what it is today largely thanks to the numerous bug reports and valuable feedback of users over the years. I urge you to file issues for any bugs you encounter or for features / behavior you would like to see implemented. I am generally pretty good at responding to issues, and at the very least, I will read, contemplate, and respond.

How to contribute

Interested in contributing to this awesome project ?!

I would love to localize Aural Player so that it is more comfortable to use for users who prefer other languages. I could definitely use help translating Aural Player's text into languages such as German, French, Spanish, Italian, Chinese, Japanese, etc (and any others that you can help with).

Please email me if you're interested in helping with this !

NOTE - I am not looking for help with app development at the moment, but if this changes, I will post an update.

Third party code attributions

  • FFmpeg (used to decode audio formats not natively supported on macOS)
  • MediaKeyTap (used to respond to media keys)
  • RangeSlider (used in the Filter effects unit to specify frequency ranges)

Contributor attributions

App user yougotwill made numerous suggestions for improvements and features, provided a lot of valuable feedback, and designed the Poolside.fm theme.

Fellow GitHub member dun198 made significant contributions towards this project - performance optimizations, UX improvements, etc.

I am also hugely grateful to all the app users who have filed bug reports and feature requests, and provided valuable feedback.

Watch out for v4.0 - an improved app version, expected to come out later this year ! Read about it here.

Download Details:

Author: Kartik-venugopal
Source Code: https://github.com/kartik-venugopal/aural-player 
License: MIT license

#swift #audio #music #macos 

Chumarat Pat

Chumarat Pat

1602630540

How to Create an Asset Audio Player in Flutter

Prerequisites

In the beginning, we will need an audio file in our project to play. You can copy/paste any file you like, just don’t forget to add this file to your **assets** in **pubspec.yaml** file after **flutter** :

Image for post

Now, we can start adding code for our asset player code.

Installation

Our first step would be adding **audioplayers**dependency to our Flutter project:

dependencies:
  audioplayers: ^0.15.1

Next, we need to import it…

import 'package:audioplayers/audioplayers.dart';

For handling audio files that are stored locally in our App we will need to import **audio_cache.dart** from the **audioplayers** package:

import 'package:audioplayers/audio_cache.dart';

#assets #audio #players #flutter

Rupert  Beatty

Rupert Beatty

1666173000

eqMac: macOS System-wide Audio Equalizer & Volume Mixer

eqMac

macOS System-wide Audio Equalizer & Volume Mixer 🎧

Notice: Currently the code in this repository corresponds to v1.3.2 of eqMac and all the newer releases are done on a private fork. I'm still unsure if new releases will be open sourced, mostly because I don't see the benefit of open sourcing the app anymore. Change my mind.

Features

Current

  • System audio Source
  • Volume Booster
  • HDMI Volume Support
  • Volume Balance support for all devices (including HDMI)
  • Basic EQ - Bass, Mids, Treble control
  • Advanced EQ - Fixed 10 bands
  • Expert EQ* - Unlimited bands, fully customizable (Filter Type, Frequency, Gain, Bandwidth)
  • Spectrum analyzer*
  • AutoEQ Integration*
  • Reverb* - Spatial audio enhancement
  • Volume Mixer* - Apply different volume levels per each application

*Not Open Sourced

Roadmap

Idea is to become the ultimate Audio toolbox for macOS (some features might not be open sourced)

  • Input Audio Source - Apply effects to any device: guitar, microphone etc.
  • Virtual Output - Export the Adjusted audio to any application
  • Custom UI - Fully customize the look and feel of eqMac by changing the User Interface Colors, Feature visibility and arrangement.
  • Hotkeys - Control eqMac with Keyboard Shortcuts
  • Recorder - save any audio playback (System, Input device, File)
  • Remote control from your phone
  • Separate L/R Channel EQ - Fix hearing impairements
  • API - Control all aspects of eqMac through a WebSocket API. Works with any programming language that supports WebSockets.
  • File playback and rendering - Apply effects to audio files and instantly render them
  • and more...

Vote on the Features you want to see sooner

User support

This project is heavily reliant on the whole community helping each other out. If you have an issue with eqMac please go through Issues to see if it's already being discussed, if not create a new one. Also you can join our Discord, I'm there all the time and I like to chat with people.

Technology

eqMac was built using these technologies:

  • Driver - System Audio loopback/passthrough device based on Apple's Null Audio Server Driver Plug-in example. One of the first Examples of a macOS System Capture drivers written in Swift. The driver grabs the system audio stream and sends it to the input channels (similar to BlackHole). eqMac can grab this stream, process it and send to the appropriate audio device. The driver runs in User space instead of Kernel like the previous drivers (i.e SoundFlower), which means it's much more secure and stable.
  • App - Native backend to the whole app. Responsible for audio processing, filesystem access, window management, API and general lifecycle of eqMac. Written in Swift and uses Apple's more modern AVAudioEngine API, unlike the previous version that used a deprecated AUGraph API.
  • UI - Web based user interface that is hosted remotely and thus allows for over the air updates & bug fixes. Built with Angular + TypeScript and is cached for offline availability.

Contribution

At the moment eqMac is going through a major rewrite and it's hard to coordinate the development of big features. But bug fixes, performance optimizations and refactoring PR's are welcomed! Please create an issue on GitHub (please check if your issue is already being discussed) or join our Discord to discuss. Once a piece of work has been agreed - fork, build, debug, fix, merge and create a Pull Request to get your work merged in :) Check the documentation below to understand how to start eqMac debug process from Xcode

Development

Fork the repository, then run these commands in Terminal.app:

git clone https://github.com/YOUR_USERNAME/eqMac.git
cd eqMac/

Native app + driver

Prerequisites

  1. Download Xcode
  2. Install CocoaPods by sudo gem install cocoapods

Building and running the App

  1. Go into the native/app directory from root of the repo by: cd native/
  2. Install Cocoapod dependencies: pod install
  3. Open the Xcode workspace: open eqMac.xcworkspace
  4. Launch eqMac in debug mode by running the App - Debug Scheme:

Web User Interface

You don't need to run the UI code locally to debug just the Swift side of the app, unless you want to debug the UI code :) If you want to run the web based User Interface locally then you need to follow these steps to make that happen:

Prerequisites

Install Node.js LTS version preferrably using NVM

Install Yarn v1 globally: npm i -g yarn (this is needed because the project uses Yarn Workspaces)

Building and running the Web UI

  1. Run yarn from the root directory of the Monorepo
  2. Go into the ui/ directory by cd ui/
  3. Start local development server with yarn start

Credits

@nodeful - Creator and Developer of eqMac

Apple Inc. - For open sourcing this HAL Driver Example

@titanicbobo - For the Big Sur icon design

Max Heim - For his research and work on creating the first Swift based Audio Server Plug-in Driver - Pancake

Download Details:

Author: bitgapp
Source Code: https://github.com/bitgapp/eqMac 
License: Apache-2.0 license

#swift #macos #audio #angular 

Samanta  Moore

Samanta Moore

1623739544

Create a Music Player using Java [Source Code Included]

Java music player is a simple classic mp3 player which has features like playing selected mp3 music files, pausing the music, resuming the music, and stopping the music. The music player is used daily by all types of users. Music helps users to create a fresh mind, inspire life, and also boost the mind of the user.

Java Music Player Functionalities

  • Play the mp3 music.
  • Pause / resume the music.
  • Stop the music.

Project Prerequisites:

  • IDE Used: NetBeans 11.2 (You can use eclipse ide)
  • Java should be installed on the machine.
  • To build an mp3 music player using java we require basic knowledge of java.
  • Abstract Window Toolkit (AWT) & Swing packages are standard graphical user interfaces used to render graphics. By default, these packages are installed by java.
  • Jlayer library is required for performing music functions such as play, pause, resume, stop. Jlayer is an open-source library we need to download from the internet.

Download Music Player Java Code

Please download the source code of java music player project: MP3 Music Player Project Code

#java tutorials #java music player #java project #music player in java #music player project #create a music player using java

Rupert  Beatty

Rupert Beatty

1668081540

A Simple Library That Lets You Play Sounds with A Single Line Of Code

SwiftySound

Overview

SwiftySound is a simple library that lets you deal with Swift sounds easily.

Static methods

Sound.play(file: "dog.wav")
Sound.play(url: fileURL)

More advanced example:

Sound.play(file: "dog", fileExtension: "wav", numberOfLoops: 2)

The above will play the sound three times.

Specify a negative number of loops to play the sound continously in an infinite loop:

Sound.play(file: "dog", fileExtension: "wav", numberOfLoops: -1)

Stop currently playing sounds:

Sound.stopAll()

Enable/disable all sounds:

Sound.enabled = true
Sound.enabled = false

The value of Sound.enabled property will be automatically persisted in UserDefaults and restored on the next launch of your app.

Change sound categories. SwiftySound provides a simple way of changing sound category:

Sound.category = .ambient

This changes the category of the underlying shared AVAudioSession instance. The default value is SoundCategory.ambient. Due to AVAudioSession architecture, this property is not available on macOS.

Creating instances of Sound class

You can also create an instance of a Sound class and store it somewhere in your app.

let mySound = Sound(url: fileURL)
mySound.play()

Creating an instance has more benefits like the ability to adjust the volume and playback callbacks.

Change the volume

You can change the volume of each Sound instance.

mySound.volume = 0.5

The value of volume property should be between 0.0 and 1.0, where 1.0 is the maximum.

Callbacks

You can pass a callback to the play method. It will be played after the sound finished playing. For looped sounds, the callback will be called once after the last loop has been played.

mySound.play { completed in
    print("completed: \(completed)")
}

The callback is not called if the sound was stopped, interrupted or in case of a playback error.

Features

  •  Playing single sounds
  •  Loops
  •  Infinite loops
  •  Playing the same sound multiple times simultaneously
  •  Stopping all sounds with a global static method
  •  Ability to pause and resume
  •  Adjusting sound volume
  •  Callbacks
  •  Global static variable to enable/disable all sounds

Requirements

  • Swift 5
  • Xcode 10.2 or later
  • iOS 8.0 or later
  • tvOS 9.0 or later
  • macOS 10.9 or later

For Xcode 8 and Swift 3 support, please use SwiftySound version 0.7.0. For Xcode 9 and Swift 4 support, please use SwiftySound version 1.0.0.

Installation

Installation with CocoaPods

CocoaPods is a dependency manager which automates and simplifies the process of using third-party libraries in your projects. See the Get Started section for more details.

Podfile

platform :ios, '8.0'
use_frameworks!
pod 'SwiftySound'

Installation with Carthage

Carthage is a lightweight dependency manager for Swift and Objective-C. It leverages CocoaTouch modules and is less invasive than CocoaPods.

To install with carthage, follow the instruction on Carthage

Cartfile

github "adamcichy/SwiftySound"

Installation with Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. Just add the url of this repo to your Package.swift file as a dependency:

import PackageDescription

let package = Package(
    name: "YourPackage",
    dependencies: [
        .Package(url: "https://github.com/adamcichy/SwiftySound.git",
                 majorVersion: 0)
    ]
)

Then run swift build and wait for SPM to install SwiftySound.

Manual installation

Drop the Sound.swift file into your project, link against AVFoundation.framework and you are ready to go.

Download Details:

Author: Adamcichy
Source Code: https://github.com/adamcichy/SwiftySound 
License: MIT license

#swift #audio #macos #ios #players