Audio Overview

Sce.PlayStation.Core.Audio provides a feature to play back sound effects and BGM.

Sound Effects

The Sound class represents sound effect data. The SoundPlayer class plays back sound effects. One type of sound effect can be simultaneously played back by using multiple SoundPlayer classes for one Sound class.

Sound is created from a wav file. By calling Sound.CreatePlayer(), a SoundPlayer linked to the Sound object will be created. Calling SoundPlayer.Play() will play back sound effects.

File formats usable with the Sound class are as follows.

  • 1-channel or 2-channel data in RIFF-format linear PCM with a sampling rate of 22050Hz or 44100Hz, quantifying bit number of 16 bits
  • 1-channel or 2-channel data in RIFF-format Microsoft ADPCM with a sampling rate of 22050Hz or 44100Hz, quantifying bit number of 16 bits

BGM

The Bgm class represents BGM data. The BgmPlayer class plays back BGM. Only one Bgm can be played back at a time. Thus, multiple BgmPlayer cannot be created.

Bgm is created from a mp3 file. By calling Bgm.CreatePlayer(), a BgmPlayer linked to the Bgm object will be created. Call BgmPlayer.Play() to play back music.

The file formats that can be used by the Bgm class are data that is an MPEG-1 Audio Layer-3, with a bit rate of 128-320 kbps (CBR, VBR), sampling rate of 44100Hz or 48000Hz, and with 1-channel or 2-channel.