int CD_Play(int track, int loop) { int err; err = SoundDriver_CD_Play(track, loop); if (err != CD_Ok) { ErrorCode = err; return CD_Error; } return CD_Ok; }
int CD_Play(int track, int loop) { int err; err = SoundDriver_CD_Play(track, loop); if (err != CD_Ok) { // the actual error string will be obtained from the driver ErrorCode = CD_DriverError; return CD_Error; } return CD_Ok; }