aboutsummaryrefslogtreecommitdiff
path: root/smelt/sdl/sfx_dumb.cpp
blob: 4e7a27751b4f6d47fb25000086a80b5871383b29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// -*- 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 library is in development and interfaces would be very
 * unstable.
 *
 */
#include "smelt_internal.hpp"

static const char* SFX_SDL_SRCFN="smelt/sdl/sfx_dumb.cpp";

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)
{}

ALuint SMELT_IMPL::getSource()
{return 0;}
bool SMELT_IMPL::initOAL()
{
	smLog("%s:" SLINE ": I'm dumb!\n",SFX_SDL_SRCFN);
	pOpenALDevice=(void*)1;
	return true;
}
void SMELT_IMPL::finiOAL()
{
	if(pOpenALDevice)
	{
		pOpenALDevice=NULL;
	}
}