---
title: dwSamplePeriod
framework: Force Feedback
role: symbol
role_heading: Instance Property
platforms: [Mac Catalyst 13.0+, macOS 10.2+]
path: forcefeedback/ffeffect/dwsampleperiod
---

# dwSamplePeriod

The period at which the device should play back the effect, in microseconds.

## Declaration

```swift
var dwSamplePeriod: DWORD
```

## Discussion

Discussion A value of 0 indicates that the default playback sample rate should be used. If the device is not capable of playing back the effect at the specified rate, it chooses the supported rate that is closest to the requested value. Setting a custom dwSamplePeriod can be used for special effects. For example, playing a sine wave at an artificially large sample period results in a rougher texture.

## See Also

### Instance Properties

- [cAxes](forcefeedback/ffeffect/caxes.md)
- [cbTypeSpecificParams](forcefeedback/ffeffect/cbtypespecificparams.md)
- [dwDuration](forcefeedback/ffeffect/dwduration.md)
- [dwFlags](forcefeedback/ffeffect/dwflags.md)
- [dwGain](forcefeedback/ffeffect/dwgain.md)
- [dwSize](forcefeedback/ffeffect/dwsize.md)
- [dwStartDelay](forcefeedback/ffeffect/dwstartdelay.md)
- [dwTriggerButton](forcefeedback/ffeffect/dwtriggerbutton.md)
- [dwTriggerRepeatInterval](forcefeedback/ffeffect/dwtriggerrepeatinterval.md)
- [lpEnvelope](forcefeedback/ffeffect/lpenvelope.md)
- [lpvTypeSpecificParams](forcefeedback/ffeffect/lpvtypespecificparams.md)
- [rgdwAxes](forcefeedback/ffeffect/rgdwaxes.md)
- [rglDirection](forcefeedback/ffeffect/rgldirection.md)
