summaryrefslogtreecommitdiff
path: root/docs/Classes/SDLBitsPerSample.html
blob: f50340444b11e83ba5232b8d26cc6cbfc4072ef5 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<h1>SDLBitsPerSample Class Reference</h1>

<h3>Section Contents</h3>

<ul>
  <li><a href="#section-+valueOf:">+valueOf:</a></li>
  <li><a href="#section-+values">+values</a></li>
  <li><a href="#section-+_8_BIT">+_8_BIT</a></li>
  <li><a href="#section-+_16_BIT">+_16_BIT</a></li>
</ul>

<h3>Overview</h3>

<p>Describes different bit depth options for PerformAudioPassThru</p>

<p>@since SDL 2.0</p>


<section class="section task-group-section">
  <h3 id="section-+valueOf:">
      +valueOf:
  </h3>
  
  <p>@abstract Convert String to SDLBitsPerSample</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight"><code><span class="k">+</span> <span class="p">(</span><span class="n">SDLBitsPerSample</span> <span class="o">*</span><span class="p">)</span><span class="nf">valueOf</span><span class="p">:(</span><span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">value</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">value</span><span class="p">(</span><span class="n">of</span> <span class="nv">value</span><span class="p">:</span> <span class="kt">String</span><span class="o">!</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">SDLBitsPerSample</span><span class="o">!</span></code></pre>

  
  
  <h4>Parameters</h4>
  <dl>
      <dt>value</dt>
      <dd><p>The value of the string to get an object for</p>
</dd>
  </dl>
  <div>
    <h4>Return Value</h4>
    <p>SDLBitsPerSample</p>

  </div>
  
  <h3 id="section-+values">
      +values
  </h3>
  
  <p>@abstract Store the enumeration of all possible SDLBitsPerSample</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight"><code><span class="k">+</span> <span class="p">(</span><span class="n">NSArray</span> <span class="o">*</span><span class="p">)</span><span class="n">values</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">values</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="p">[</span><span class="kt">Any</span><span class="p">]</span><span class="o">!</span></code></pre>

  
  
  <div>
    <h4>Return Value</h4>
    <p>an array that store all possible SDLBitsPerSample</p>

  </div>
  
  <h3 id="section-+_8_BIT">
      +_8_BIT
  </h3>
  
  <p>@abstract 8 bits per sample</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight"><code><span class="k">+</span> <span class="p">(</span><span class="n">SDLBitsPerSample</span> <span class="o">*</span><span class="p">)</span><span class="n">_8_BIT</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">_8_BIT</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">SDLBitsPerSample</span><span class="o">!</span></code></pre>

  
  
  <div>
    <h4>Return Value</h4>
    <p>a SDLBitsPerSample with value of <em>8_BIT</em></p>

  </div>
  
  <h3 id="section-+_16_BIT">
      +_16_BIT
  </h3>
  
  <p>@abstract 16 bits per sample</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight"><code><span class="k">+</span> <span class="p">(</span><span class="n">SDLBitsPerSample</span> <span class="o">*</span><span class="p">)</span><span class="n">_16_BIT</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">_16_BIT</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">SDLBitsPerSample</span><span class="o">!</span></code></pre>

  
  
  <div>
    <h4>Return Value</h4>
    <p>a SDLBitsPerSample with value of <em>16_BIT</em></p>

  </div>
  
</section>