28 Sound_Renderer_SLES::Sound_Renderer_SLES()
34 if(slCreateEngine(&engineObject, 0,
NULL, 0,
NULL,
NULL) != SL_RESULT_SUCCESS)
35 throw Sound_Init_Failure();
38 if((*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE) != SL_RESULT_SUCCESS)
39 throw Sound_Init_Failure();
42 if((*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine) != SL_RESULT_SUCCESS)
43 throw Sound_Init_Failure();
46 if((*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 0,
NULL,
NULL) != SL_RESULT_SUCCESS)
47 throw Sound_Init_Failure();
50 if((*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE) != SL_RESULT_SUCCESS)
51 throw Sound_Init_Failure();
54 Sound_Renderer_SLES::~Sound_Renderer_SLES() {
56 if(outputMixObject !=
NULL) {
57 (*outputMixObject)->Destroy(outputMixObject);
58 outputMixObject =
NULL;
62 if(engineObject !=
NULL) {
63 (*engineObject)->Destroy(engineObject);
69 SLEngineItf & Sound_Renderer_SLES::get_engineEngine() {
73 SLObjectItf & Sound_Renderer_SLES::get_outputMixObject() {
74 return outputMixObject;
77 void Sound_Renderer_SLES::set_listener_position(
const Point3f &) {
80 void Sound_Renderer_SLES::set_listener_velocity(
const Vector3f &) {
83 void Sound_Renderer_SLES::set_listener_forward_and_up(
const Vector3f &,
const Vector3f &) {
86 void Sound_Renderer_SLES::set_listener_gain(
const float &gain) {
89 std::pair<Vector3f, Vector3f> Sound_Renderer_SLES::get_listener_forward_and_up()
const {
90 return std::make_pair(Vector3f(), Vector3f());
void * this_pointer_is_silent_sound_too