Wiki

This version is outdated by a newer approved version.DiffThis version (17 Apr 2018 09:07) was approved by Sanjeeva Reddy.

This is an old revision of the document!


Wav Player

Click here to return to the Sources section.

This module can be used to read PCM/WAV files from internal memory of ADAU145x. This module also provides playback controls as Play/Pause, Stop and Loopback.This module also can perform pitch shifting while playing the file.



The following list shows the various audio files supported by this module.

  1. Audio Samples in 8.24 Fixed point format (Mono)
  2. Wav file with out header (PCM) (Mono)
    1. 8 Bits per Sample (Signed Integer)
    2. 16 Bits per Sample (Signed Integer)
    3. 24 Bits per Sample (Signed Integer)
    4. 32 Bits per Sample (Signed Integer)


Output Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: WavPlayer OutPutdecimal - audioAudio Sample


Grow Algorithm

The module currently does not support grow/add functionality.

Configurations

Click on the image to open the Wav Player Properties Window.


GUI Control NameDefault ValueRangeFunction Description
Audio File FormatAudio Sample in 8.24Wav without header (PCM)/Audio Sample in 8.24 formatSelection of audio file format
Bits Per Sample328/16/24/32Bits per sample in the audio file Load.
Sample to Start00 - number of samples in fileTo allow phase shift.
File TypeASCIIASCII/BinaryTo select text file or PCM file.

Note: The size of the file shall not exceed the (Maximum DM0 Memory(20kb) - Available DM0 Memory).

Any change in these configuration parameters requires a recompilation.

DSP Parameter Information

GUI Control NameCompiler NameFunction Description
ForwardPlayWavPlayerInternalAlg1ForwardPlayTo Play or Pause the Audio
LoopbackWavPlayerInternalAlg1LoopbackTo Enable/Disable Loopback
PitchScalingFactorWavPlayerInternalAlg1PitchScalingFactor To provide pitch shifting
PitchScalingCounterWavPlayerInternalAlg1PitchScalingCounter To provide phase shift


Here,

  • Green - Algorithm Name
  • Red - Instance Number (Changes for each instance)
  • Blue - Parameter Name

Supported ICs

  1. ADAU145x
resources/tools-software/sigmastudio/toolbox/sources/wavplayer.1521452033.txt.gz · Last modified: 19 Mar 2018 10:33 by Sanjeeva Reddy