Audio Playback

Play audio on device speaker

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

Description

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.

Note

During simulation with no hardware connected, this block does nothing. For more information, see Block Produces Zeros or Does Nothing in Simulation (Simulink).

Ports

Input

expand all

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

Data Types: int16

Parameters

expand all

Specify the audio sampling frequency of the device speaker.

Introduced in R2015a