Play audio on device speaker
Simulink Support Package for Apple iOS Devices / Audio & Video
The Audio Playback block plays an audio sample on the device speaker. The
block accepts an N-by-2
int16 matrix as the input audio
sample. N is the number of audio samples per frame, and the columns of the
matrix represent the left and right audio channels, respectively.
During simulation with no hardware connected, this block does nothing. For more information, see Block Produces Zeros or Does Nothing in Simulation (Simulink).
Port_1— Audio sample
Audio sample, specified as an N-by-2 numeric matrix.
Audio sampling frequency (Hz)— Sample rate of device speaker
Specify the audio sampling frequency of the device speaker.