Miles Sound System SDK 7.2a

SOUND_CORE_FLAGS

The basic type SOUND_CORE_FLAGS Specifies the sound flags that RAD_IOP should use.

Fundamental Values

 Value  Description
 RAD_IOP_NEED_CORE0 Tells RAD_IOP that you want to use the PCM channel on core 0.
 RAD_IOP_NEED_CORE1 Tells RAD_IOP that you want to use the PCM channel on core 1.
 RAD_IOP_SPDIF Tells RAD_IOP to route raw bitstream audio data (as opposed to PCM values) to the S/PDIF port.
 RAD_IOP_NO_INIT_LIBSD Tells RAD_IOP not to initialize libsb on the IOP (because you have already done it).

Discussion

These flags are used with RAD_IOPStartUp and RAD_IOPMemoryAmount to specify the sound resources that you want to use. We need only one PCM sound channel, but you can request both of them if you want to use the other one directly. The RAD_IOP also allows for the outgoing sound to be mixed together, so you don't really need both sound cores, even if you are playing audio outside of Bink or Miles at the same time.

The PS2's S/PDIF port is always active, unless explicitly turned off by the sceSdSetCoreAttr function. Normally, the S/PDIF port provides a stereo 48-kHz 16-bit PCM "copy" of the audio output at the line-out jacks. When you specify the RAD_IOP_SPDIF flag, however, the audio data returned by the EE in response to a sound callback is treated as a raw bitstream rather than PCM data. It is transmitted through the S/PDIF port at 1.536 Mbit/s for the benefit of a DTS- or Dolby Digital-equipped receiver. Consequently, the Miles Sound System's DTS encoder requires the RAD_IOP_SPDIF flag to be specified at startup time. (It must always be OR'ed with the RAD_IOP_NEED_CORE0 flag, since core-0 functionality is required for bitstream transmission.)


Group: The RAD_IOP API for the Sony PS2
Related Functions: RAD_IOPMemoryAmount, RAD_IOPStartUp

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.