mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
15 lines
346 B
Swift
15 lines
346 B
Swift
//
|
|
// AudioPlayer.swift
|
|
// DynamicIsland
|
|
//
|
|
// 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()
|
|
}
|
|
}
|