1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
persephone/Persephone/MPDClient/Extensions/MPDClient+Mixer.swift
2020-02-19 18:08:22 -05:00

25 lines
454 B
Swift

//
// MPDClient+Mixer.swift
// Persephone
//
// Created by Daniel Barber on 2/16/20.
// Copyright © 2020 Dan Barber. All rights reserved.
//
import Foundation
import mpdclient
extension MPDClient {
func setVolume(to volume: Int) {
enqueueCommand(
command: .setVolume,
priority: .high,
userData: ["volume": volume]
)
}
func sendSetVolume(to volume: Int) {
mpd_run_set_volume(connection, UInt32(volume))
}
}