Main Content

Audio Playback

Play audio on device speaker

  • Library:
  • Simulink Support Package for Apple iOS Devices / Audio & Video

  • Audio Playback block


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.



expand all

Audio sample, specified as an N-by-2 numeric matrix.

Data Types: int16


expand all

Specify the audio sampling frequency of the device speaker.

Version History

Introduced in R2015a