h6. [[SoundDMA]] h6(. » [[SoundDMA SWI Calls|SWI Calls]] h6((. » Sound_SelectDefaultController h2. Sound_SelectDefaultController h5. (SWI &40148) |_<^{width:4em}. Entry | | |<^. R0 |<^. Pointer to space/control terminated controller ID string | |_<^{width:4em}. Exit | | |<^. R0 |<^. 0, or pointer to error block | h4. Use The purpose of this call is to select the audio controller device that should be used as the default device. This is the device which the 8-bit and 16-bit sound systems will use to output their audio. h4. Notes Many versions of SoundDMA do not return errors when unknown SWIs are called. Therefore, to detect if this SWI is supported, check if R0 has been set to 0 on exit (Valid reason codes start at 1), or use [[Sound_ReadSysInfo 1]]. The current audio device can be determined by calling [[Sound_ReadSysInfo 2]]. [[*Audio]] can also be used to select the default controller. h4. See also * [[Sound SWI Calls]] * [[Sound_ReadSysInfo]] * [[Sound_EnumerateControllers]] * [[Sound_ControllerInfo]] * [[*Audio]]