- Declared in:
- MKSoundDevice.h
Returns the default sound device for this platform.
- Declared in:
- MKSoundDevice.h
- Conforms to:
- NSObject
Initialises a device for output (i.e. as a speaker / headphone).
Plays a sample in an output device.
Records a sample from an input device. Returns true if the read succeeded.
Resets the device. The sample format, rate, and number of channels will return to their defaults and can once again be set.
Sets the number of channels to use on this device.
Note that this must be called before any calls setting the sampling rate and after any setting the sample format.
Sets the current sample format. See the OSS documentation for valid formats.
Note that this should be called before any calls setting the number of channels or the sample rate.
Sets the volume for the left and right channels. Valid values are from 0 to 100. Behaviour on other values is undefined.
Synchronises this thread with device state. Blocks until all data sent to the device has really been played.