@@ -155,45 +155,6 @@ impl Default for Format {
155
155
}
156
156
}
157
157
158
- // The following are endian-independant format references.
159
-
160
- /// A shortcut for [`SAMPLE_FLOAT32NE`].
161
- #[ allow( deprecated) ]
162
- #[ deprecated( since = "2.20.0" , note = "use the `FLOAT32NE` associated constant on `Format` instead" ) ]
163
- pub const SAMPLE_FLOAT32 : Format = SAMPLE_FLOAT32NE ;
164
-
165
- /// Signed 16-bit PCM, native endian.
166
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
167
- pub const SAMPLE_S16NE : Format = self :: ei_formats:: SAMPLE_S16NE ;
168
- /// 32-bit IEEE floating point, native endian.
169
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
170
- pub const SAMPLE_FLOAT32NE : Format = self :: ei_formats:: SAMPLE_FLOAT32NE ;
171
- /// Signed 32-bit PCM, native endian.
172
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
173
- pub const SAMPLE_S32NE : Format = self :: ei_formats:: SAMPLE_S32NE ;
174
- /// Signed 24-bit PCM packed, native endian.
175
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
176
- pub const SAMPLE_S24NE : Format = self :: ei_formats:: SAMPLE_S24NE ;
177
- /// Signed 24-bit PCM in LSB of 32-bit words, native endian.
178
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
179
- pub const SAMPLE_S24_32NE : Format = self :: ei_formats:: SAMPLE_S24_32NE ;
180
-
181
- /// Signed 16-bit PCM reverse endian.
182
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
183
- pub const SAMPLE_S16RE : Format = self :: ei_formats:: SAMPLE_S16RE ;
184
- /// 32-bit IEEE floating point, reverse endian.
185
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
186
- pub const SAMPLE_FLOAT32RE : Format = self :: ei_formats:: SAMPLE_FLOAT32RE ;
187
- /// Signed 32-bit PCM, reverse endian.
188
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
189
- pub const SAMPLE_S32RE : Format = self :: ei_formats:: SAMPLE_S32RE ;
190
- /// Signed 24-bit PCM, packed reverse endian.
191
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
192
- pub const SAMPLE_S24RE : Format = self :: ei_formats:: SAMPLE_S24RE ;
193
- /// Signed 24-bit PCM, in LSB of 32-bit words, reverse endian.
194
- #[ deprecated( since = "2.20.0" , note = "use the associated constant on `Format` instead" ) ]
195
- pub const SAMPLE_S24_32RE : Format = self :: ei_formats:: SAMPLE_S24_32RE ;
196
-
197
158
/// Endian-independent format identifiers, for big-endian systems.
198
159
#[ cfg( target_endian = "big" ) ]
199
160
mod ei_formats {
0 commit comments