@@ -202,9 +202,9 @@ CoreAudioTestSuite.test(
202
202
CoreAudioTestSuite . test ( " UnsafeMutableAudioBufferListPointer.count " ) {
203
203
let sizeInBytes = AudioBufferList . sizeInBytes ( maximumBuffers: 16 )
204
204
let rawPtr = UnsafeMutableRawPointer . allocate (
205
- bytes: sizeInBytes, alignedTo: alignof ( AudioBufferList . self ) )
205
+ bytes: sizeInBytes, alignedTo: MemoryLayout < AudioBufferList> . alignment )
206
206
let ablPtr = rawPtr. bindMemory ( to: AudioBufferList . self,
207
- capacity: sizeInBytes / strideof ( AudioBufferList . self ) )
207
+ capacity: sizeInBytes / MemoryLayout < AudioBufferList> . stride )
208
208
209
209
// It is important that 'ablPtrWrapper' is a 'let'. We are verifying that
210
210
// the 'count' property has a nonmutating setter.
@@ -219,7 +219,7 @@ CoreAudioTestSuite.test("UnsafeMutableAudioBufferListPointer.count") {
219
219
expectEqual ( 0x7765_4321 , rawPtr. load ( as: UInt32 . self) )
220
220
221
221
rawPtr. deallocate (
222
- bytes: sizeInBytes, alignedTo: alignof ( AudioBufferList . self ) )
222
+ bytes: sizeInBytes, alignedTo: MemoryLayout < AudioBufferList> . alignment )
223
223
}
224
224
225
225
CoreAudioTestSuite . test ( " UnsafeMutableAudioBufferListPointer.subscript(_: Int) " ) {
@@ -230,7 +230,7 @@ CoreAudioTestSuite.test("UnsafeMutableAudioBufferListPointer.subscript(_: Int)")
230
230
231
231
let ablPtr = rawPtr. bindMemory (
232
232
to: AudioBufferList . self,
233
- capacity: sizeInBytes / sizeof ( AudioBufferList . self ) )
233
+ capacity: sizeInBytes / MemoryLayout < AudioBufferList> . stride )
234
234
235
235
// It is important that 'ablPtrWrapper' is a 'let'. We are verifying that
236
236
// the subscript has a nonmutating setter.
0 commit comments