mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-29 08:04:32 +00:00
Restored files from old Mac, force pushing
This commit is contained in:
parent
5dd95228b8
commit
5040381840
126 changed files with 10431 additions and 67 deletions
15
DynamicIsland/helpers/AudioPlayer.swift
Normal file
15
DynamicIsland/helpers/AudioPlayer.swift
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
//
|
||||
// AudioPlayer.swift
|
||||
// boringNotch
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 09/08/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import AppKit
|
||||
|
||||
class AudioPlayer {
|
||||
func play(fileName: String, fileExtension: String) {
|
||||
NSSound(contentsOf:Bundle.main.url(forResource: fileName, withExtension: fileExtension)!, byReference: false)?.play()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue