Pedal Point源码发布及说明(6)[3]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 spanzhang 的 blog

 case mmsyserr_nomem:
  throw std::exception("unable to allocate or lock memory.");
  
 default:
  throw std::exception("unknown error occured.");
 }
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>)

 //关闭设备
 mmreturn = ::waveinclose(hrecord);
 switch(mmreturn)
 {
 case mmsyserr_noerror: //成功
  break;
  
 case mmsyserr_invalhandle:
  throw std::exception("specified device handle is invalid.");
  break;
  
 case mmsyserr_nodriver:
  throw std::exception("no device driver is present.");
  break;
  
 case mmsyserr_nomem:
  throw std::exception("unable to allocate or lock memory.");
  break;
  
 case waverr_stillplaying:
  throw std::exception("there are still buffers in the queue.");
  break;

 default:
  throw std::exception("unknown error occured.");
 }

 status = e_status_stoped;
}

//////////////////////////////////////////////////////////////////////
}; //namespace wa
//////////////////////////////////////////////////////////////////////

本文关键:Pedal Point源码发布及说明(6)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top