Skip to content

Commit d40035f

Browse files
committed
Replace comma with semicolon for bitflags 1.0 update
1 parent 40fcca3 commit d40035f

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

src/audio_unit/audio_format.rs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -283,44 +283,44 @@ pub mod standard_flags {
283283
/// Set for floating point, clear for integer.
284284
///
285285
/// **Available** in OS X v10.2 and later.
286-
const IS_FLOAT = 1,
286+
const IS_FLOAT = 1;
287287
/// Set for big endian, clear for little endian.
288288
///
289289
/// **Available** in OS X v10.2 and later.
290-
const IS_BIG_ENDIAN = 2,
290+
const IS_BIG_ENDIAN = 2;
291291
/// Set for signed integer, clear for unsigned integer.
292292
///
293293
/// Note: This is only valid if `IS_FLOAT` is clear.
294294
///
295295
/// **Available** in OS X v10.2 and later.
296-
const IS_SIGNED_INTEGER = 4,
296+
const IS_SIGNED_INTEGER = 4;
297297
/// Set if the sample bits occupy the entire available bits for the channel, clear if they
298298
/// are high- or low-aligned within the channel.
299299
///
300300
/// **Available** in OS X v10.2 and later.
301-
const IS_PACKED = 8,
301+
const IS_PACKED = 8;
302302
/// Set if the sample bits are placed into the high bits of the channel, clear for low bit
303303
/// placement.
304304
///
305305
/// Note: This is only valid if `IS_PACKED` is clear.
306306
///
307307
/// **Available** in OS X v10.2 and later.
308-
const IS_ALIGNED_HIGH = 16,
308+
const IS_ALIGNED_HIGH = 16;
309309
/// Set if the sample for each channel are located contiguously and the channels are laid
310310
/// out end to end.
311311
///
312312
/// Clear if the samples for each frame are laid out contiguously and the frames laid out
313313
/// end to end.
314314
///
315315
/// **Available** in OS X v10.2 and later.
316-
const IS_NON_INTERLEAVED = 32,
316+
const IS_NON_INTERLEAVED = 32;
317317
/// Set to indicate when a format is nonmixable.
318318
///
319319
/// Note: that this flag is only used when interacting with the HAL's stream format
320320
/// information. It is **not** valid for any other use.
321321
///
322322
/// **Available** in OS X v10.3 and later.
323-
const IS_NON_MIXABLE = 64,
323+
const IS_NON_MIXABLE = 64;
324324
}
325325
}
326326
}
@@ -341,31 +341,31 @@ pub mod linear_pcm_flags {
341341
/// Synonmyn for the **IS_FLOAT** **StandardFlags**.
342342
///
343343
/// **Available** in OS X v10.0 and later.
344-
const IS_FLOAT = 1,
344+
const IS_FLOAT = 1;
345345
/// Synonmyn for the **IS_BIG_ENDIAN** **StandardFlags**.
346346
///
347347
/// **Available** in OS X v10.0 and later.
348-
const IS_BIG_ENDIAN = 2,
348+
const IS_BIG_ENDIAN = 2;
349349
/// Synonmyn for the **IS_SIGNED_INTEGER** **StandardFlags**.
350350
///
351351
/// **Available** in OS X v10.0 and later.
352-
const IS_SIGNED_INTEGER = 4,
352+
const IS_SIGNED_INTEGER = 4;
353353
/// Synonmyn for the **IS_PACKED** **StandardFlags**.
354354
///
355355
/// **Available** in OS X v10.0 and later.
356-
const IS_PACKED = 8,
356+
const IS_PACKED = 8;
357357
/// Synonmyn for the **IS_ALIGNED_HIGH** **StandardFlags**.
358358
///
359359
/// **Available** in OS X v10.0 and later.
360-
const IS_ALIGNED_HIGH = 16,
360+
const IS_ALIGNED_HIGH = 16;
361361
/// Synonmyn for the **IS_NON_INTERLEAVED** **StandardFlags**.
362362
///
363363
/// **Available** in OS X v10.2 and later.
364-
const IS_NON_INTERLEAVED = 32,
364+
const IS_NON_INTERLEAVED = 32;
365365
/// Synonmyn for the **IS_NON_MIXABLE** **StandardFlags**.
366366
///
367367
/// **Available** in OS X v10.3 and later.
368-
const IS_NON_MIXABLE = 64,
368+
const IS_NON_MIXABLE = 64;
369369
/// The linear PCM flags contain a 6-bit bitfield indicating that an integer format is to
370370
/// be interpreted as fixed point.
371371
///
@@ -379,13 +379,13 @@ pub mod linear_pcm_flags {
379379
/// uniquely in some way.
380380
///
381381
/// **Available** in OS X v10.6 and later.
382-
const FLAGS_SAMPLE_FRACTION_SHIFT = 7,
382+
const FLAGS_SAMPLE_FRACTION_SHIFT = 7;
383383
/// The number of fractional bits.
384384
///
385385
/// `== (<other_flags> & FLAGS_SAMPLE_FRACTION_MASK) >> FLAGS_SAMPLE_FRACTION_SHIFT`
386386
///
387387
/// **Available** in OS X v10.6 and later.
388-
const FLAGS_SAMPLE_FRACTION_MASK = 8064,
388+
const FLAGS_SAMPLE_FRACTION_MASK = 8064;
389389
}
390390
}
391391
}
@@ -406,13 +406,13 @@ pub mod apple_lossless_flags {
406406
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
407407
pub struct AppleLosslessFlags: u32 {
408408
/// Sourced from 16 bit native endian signed integer data.
409-
const BIT_16_SOURCE_DATA = 1,
409+
const BIT_16_SOURCE_DATA = 1;
410410
/// Sourced from 20 bit native endian signed integer data aligned high in 24 bits.
411-
const BIT_20_SOURCE_DATA = 2,
411+
const BIT_20_SOURCE_DATA = 2;
412412
/// Sourced from 24 bit native endian signed integer data.
413-
const BIT_24_SOURCE_DATA = 3,
413+
const BIT_24_SOURCE_DATA = 3;
414414
/// Sourced from 32 bit native endian signed integer data.
415-
const BIT_32_SOURCE_DATA = 4,
415+
const BIT_32_SOURCE_DATA = 4;
416416
}
417417
}
418418
}
@@ -485,15 +485,15 @@ pub mod audio_time_stamp_flags {
485485
/// Original Documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/Audio_Time_Stamp_Flags).
486486
pub struct AudioTimeStampFlags: u32 {
487487
/// The sample frame time is valid.
488-
const SAMPLE_TIME_VALID = 1,
488+
const SAMPLE_TIME_VALID = 1;
489489
/// The host time is valid.
490-
const HOST_TIME_VALID = 2,
490+
const HOST_TIME_VALID = 2;
491491
/// The rate scalar is valid.
492-
const RATE_SCALAR_VALID = 4,
492+
const RATE_SCALAR_VALID = 4;
493493
/// The world clock time is valid.
494-
const WORLD_CLOCK_TIME_VALID = 8,
494+
const WORLD_CLOCK_TIME_VALID = 8;
495495
/// The SMPTE time is valid.
496-
const SMPTE_TIME_VALID = 16,
496+
const SMPTE_TIME_VALID = 16;
497497
}
498498
}
499499
}

src/audio_unit/render_callback.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,20 +231,20 @@ pub mod action_flags {
231231
/// before the render operation is performed.
232232
///
233233
/// **Available** in OS X v10.0 and later.
234-
const PRE_RENDER = au::kAudioUnitRenderAction_PreRender,
234+
const PRE_RENDER = au::kAudioUnitRenderAction_PreRender;
235235
/// Called on a render notification Proc, which is called either before or after the
236236
/// render operation of the audio unit. If this flag is set, the proc is being called
237237
/// after the render operation is completed.
238238
///
239239
/// **Available** in OS X v10.0 and later.
240-
const POST_RENDER = au::kAudioUnitRenderAction_PostRender,
240+
const POST_RENDER = au::kAudioUnitRenderAction_PostRender;
241241
/// This flag can be set in a render input callback (or in the audio unit's render
242242
/// operation itself) and is used to indicate that the render buffer contains only
243243
/// silence. It can then be used by the caller as a hint to whether the buffer needs to
244244
/// be processed or not.
245245
///
246246
/// **Available** in OS X v10.2 and later.
247-
const OUTPUT_IS_SILENCE = au::kAudioUnitRenderAction_OutputIsSilence,
247+
const OUTPUT_IS_SILENCE = au::kAudioUnitRenderAction_OutputIsSilence;
248248
/// This is used with offline audio units (of type 'auol'). It is used when an offline
249249
/// unit is being preflighted, which is performed prior to when the actual offline
250250
/// rendering actions are performed. It is used for those cases where the offline
@@ -253,32 +253,32 @@ pub mod action_flags {
253253
/// normalization).
254254
///
255255
/// **Available** in OS X v10.3 and later.
256-
const OFFLINE_PREFLIGHT = au::kAudioOfflineUnitRenderAction_Preflight,
256+
const OFFLINE_PREFLIGHT = au::kAudioOfflineUnitRenderAction_Preflight;
257257
/// Once an offline unit has been successfully preflighted, it is then put into its
258258
/// render mode. This flag is set to indicate to the audio unit that it is now in that
259259
/// state and that it should perform processing on the input data.
260260
///
261261
/// **Available** in OS X v10.3 and later.
262-
const OFFLINE_RENDER = au::kAudioOfflineUnitRenderAction_Render,
262+
const OFFLINE_RENDER = au::kAudioOfflineUnitRenderAction_Render;
263263
/// This flag is set when an offline unit has completed either its preflight or
264264
/// performed render operation.
265265
///
266266
/// **Available** in OS X v10.3 and later.
267-
const OFFLINE_COMPLETE = au::kAudioOfflineUnitRenderAction_Complete,
267+
const OFFLINE_COMPLETE = au::kAudioOfflineUnitRenderAction_Complete;
268268
/// If this flag is set on the post-render call an error was returned by the audio
269269
/// unit's render operation. In this case, the error can be retrieved through the
270270
/// `lastRenderError` property and the audio data in `ioData` handed to the post-render
271271
/// notification will be invalid.
272272
///
273273
/// **Available** in OS X v10.5 and later.
274-
const POST_RENDER_ERROR = au::kAudioUnitRenderAction_PostRenderError,
274+
const POST_RENDER_ERROR = au::kAudioUnitRenderAction_PostRenderError;
275275
/// If this flag is set, then checks that are done on the arguments provided to render
276276
/// are not performed. This can be useful to use to save computation time in situations
277277
/// where you are sure you are providing the correct arguments and structures to the
278278
/// various render calls.
279279
///
280280
/// **Available** in OS X v10.7 and later.
281-
const DO_NOT_CHECK_RENDER_ARGS = au::kAudioUnitRenderAction_DoNotCheckRenderArgs,
281+
const DO_NOT_CHECK_RENDER_ARGS = au::kAudioUnitRenderAction_DoNotCheckRenderArgs;
282282
}
283283
}
284284

0 commit comments

Comments
 (0)