[go: up one dir, main page]

Menu

[r1]: / engine / audio / nosound.c  Maximize  Restore  History

Download this file

118 lines (84 with data), 1.5 kB

  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
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
//
// No sound driver
//
#ifdef USE_NOSOUND
#include <allegro.h>
#include <string.h>
#include "../ithelib.h"
#include "../console.h"
#include "../media.h"
#include "../loadfile.h"
#include "../sound.h"
// defines
// variables
int sf_volume = 63; // Max 255
int mu_volume = 200; // Max 255
struct SMTab *wavtab; // Tables of data for each sound and song.
struct SMTab *mustab; // Filled by script.cc
int Songs=0;
int Waves=0;
// functions
void S_Load(); // Load the sound and music
void S_SoundVolume(); // Set the Sound volume
void S_MusicVolume(); // Set the Music volume
void S_PlaySample(char *s,int v); // Play a sound sample
void S_PlayMusic(char *s); // Play a song
void S_StopMusic(); // Stop the music
// Public code
int S_Init()
{
return 1; // Already on, say yes
}
void S_Term()
{
}
/*
* S_Load - Load in the music and samples.
*/
void S_Load()
{
}
/*
* S_MusicVolume - Set the music level
*/
void S_MusicVolume(int vol)
{
return;
}
/*
* S_SoundVolume - Set the effects level
*/
void S_SoundVolume(int vol)
{
return;
}
/*
* S_PlayMusic - play an ogg stream
*/
void S_PlayMusic(char *name)
{
}
/*
* S_PlaySample - play a sound sample.
*/
void S_PlaySample(char *name, int volume)
{
}
//
// Is is still playing?
//
int S_IsPlaying()
{
return 0;
}
/*
* Stop the music from playing
*/
void S_StopMusic()
{
}
int StreamSong_start(char *name)
{
return 0;
}
#endif