diff options
author | Chris Xiong <chirs241097@gmail.com> | 2018-02-03 00:55:26 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2018-02-03 00:55:26 +0800 |
commit | 1eb88d4f5d5cb05d62be1d4a0c88c7399f7c0de0 (patch) | |
tree | 4daf8fa3f4e8fff38a61b8e2da752df8b519f232 /smelt/glfw_m/sfx_dumb.cpp | |
parent | 6f955e10a71e364f527ea654156ea83785e9ada8 (diff) | |
download | SMELT-1eb88d4f5d5cb05d62be1d4a0c88c7399f7c0de0.tar.xz |
Added the GL 3.2+ port.
Fixed poor performance of the truetype renderer.
(Partially) Fixed texture locking.
Minor addition and fixes to the math library.
Diffstat (limited to 'smelt/glfw_m/sfx_dumb.cpp')
-rw-r--r-- | smelt/glfw_m/sfx_dumb.cpp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/smelt/glfw_m/sfx_dumb.cpp b/smelt/glfw_m/sfx_dumb.cpp new file mode 100644 index 0000000..4464da1 --- /dev/null +++ b/smelt/glfw_m/sfx_dumb.cpp @@ -0,0 +1,63 @@ +// -*- C++ -*- +/* + * Simple MultimEdia LiTerator(SMELT) + * by Chris Xiong 2015 + * SFX dumb implementation + * This dumb implementation has everything stubbed, useful if you don't + * use the audio routines here. + * + * WARNING: This file is not intended to be used on its own! + * + */ + +SMSFX SMELT_IMPL::smSFXLoad(const char *path) +{return 0;} +SMSFX SMELT_IMPL::smSFXLoadFromMemory(const char *ptr,DWORD size) +{return 0;} +SMCHN SMELT_IMPL::smSFXPlay(SMSFX fx,int vol,int pan,float pitch,bool loop) +{return 0;} +float SMELT_IMPL::smSFXGetLengthf(SMSFX fx) +{return 0.0;} +DWORD SMELT_IMPL::smSFXGetLengthd(SMSFX fx) +{return -1;} +void SMELT_IMPL::smSFXSetLoopPoint(SMSFX fx,DWORD l,DWORD r) +{} +void SMELT_IMPL::smSFXFree(SMSFX fx) +{} +void SMELT_IMPL::smChannelVol(SMCHN chn,int vol) +{} +void SMELT_IMPL::smChannelPan(SMCHN chn,int pan) +{} +void SMELT_IMPL::smChannelPitch(SMCHN chn,float pitch) +{} +void SMELT_IMPL::smChannelPause(SMCHN chn) +{} +void SMELT_IMPL::smChannelResume(SMCHN chn) +{} +void SMELT_IMPL::smChannelStop(SMCHN chn) +{} +void SMELT_IMPL::smChannelPauseAll() +{} +void SMELT_IMPL::smChannelResumeAll() +{} +void SMELT_IMPL::smChannelStopAll() +{} +bool SMELT_IMPL::smChannelIsPlaying(SMCHN chn) +{return false;} +float SMELT_IMPL::smChannelGetPosf(SMCHN chn) +{return -1.;} +void SMELT_IMPL::smChannelSetPosf(SMCHN chn,float pos) +{} +int SMELT_IMPL::smChannelGetPosd(SMCHN chn) +{return -1;} +void SMELT_IMPL::smChannelSetPosd(SMCHN chn,int pos) +{} + +bool SMELT_IMPL::initOAL() +{ + smLog("%s:" SLINE ": I'm dumb!\n",SFX_OAL_SRCFN); + return true; +} +void SMELT_IMPL::finiOAL() +{ +} |