forked from vadymmarkov/Beethoven
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAVAudioSession.swift
More file actions
52 lines (37 loc) · 1019 Bytes
/
AVAudioSession.swift
File metadata and controls
52 lines (37 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// AVAudioSession.swift
// Beethoven
//
// Created by Wang Yu on 1/30/16.
// Copyright © 2016 Vadym Markov. All rights reserved.
//
import Foundation
enum AVAudioSessionRecordPermission {
case Granted
case Denied
case Undetermined
case Bla
}
let AVAudioSessionCategoryPlayAndRecord = "LOL Playback and Record"
let AVAudioSessionCategoryPlayback = "LOL Playback"
enum AVAudioSessionPortOverride : UInt {
case None
case Speaker
}
class AVAudioSession {
private init() {
}
class func sharedInstance() -> AVAudioSession {
return AVAudioSession()
}
func recordPermission() -> AVAudioSessionRecordPermission {
return .Granted
}
func requestRecordPermission(x: (Bool) -> Void) {
}
/// Sets the current audio session category.
func setCategory(category: String) throws {
}
func overrideOutputAudioPort(portOverride: AVAudioSessionPortOverride) throws {
}
}