Moved the audio related command enums inside audio.h

svn-id: r45676
This commit is contained in:
Filippos Karapetis 2009-11-05 00:04:53 +00:00
parent 90eba9310a
commit 1f49679db5
2 changed files with 20 additions and 20 deletions

View File

@ -100,26 +100,6 @@ enum {
_K_SCI1_SOUND_UPDATE_VOL_PRI = 20
};
enum AudioCommands {
// TODO: find the difference between kSci1AudioWPlay and kSci1AudioPlay
kSciAudioWPlay = 1, /* Plays an audio stream */
kSciAudioPlay = 2, /* Plays an audio stream */
kSciAudioStop = 3, /* Stops an audio stream */
kSciAudioPause = 4, /* Pauses an audio stream */
kSciAudioResume = 5, /* Resumes an audio stream */
kSciAudioPosition = 6, /* Return current position in audio stream */
kSciAudioRate = 7, /* Return audio rate */
kSciAudioVolume = 8, /* Return audio volume */
kSciAudioLanguage = 9, /* Return audio language */
kSciAudioCD = 10 /* Plays SCI1.1 CD audio */
};
enum AudioSyncCommands {
kSciAudioSyncStart = 0,
kSciAudioSyncNext = 1,
kSciAudioSyncStop = 2
};
#define SCI1_SOUND_FLAG_MAY_PAUSE 1 /* Only here for completeness; The interpreter doesn't touch this bit */
#define SCI1_SOUND_FLAG_SCRIPTED_PRI 2 /* but does touch this */
//#define DEBUG_SOUND // enable for sound debugging

View File

@ -31,6 +31,26 @@
namespace Sci {
enum AudioCommands {
// TODO: find the difference between kSci1AudioWPlay and kSci1AudioPlay
kSciAudioWPlay = 1, /* Plays an audio stream */
kSciAudioPlay = 2, /* Plays an audio stream */
kSciAudioStop = 3, /* Stops an audio stream */
kSciAudioPause = 4, /* Pauses an audio stream */
kSciAudioResume = 5, /* Resumes an audio stream */
kSciAudioPosition = 6, /* Return current position in audio stream */
kSciAudioRate = 7, /* Return audio rate */
kSciAudioVolume = 8, /* Return audio volume */
kSciAudioLanguage = 9, /* Return audio language */
kSciAudioCD = 10 /* Plays SCI1.1 CD audio */
};
enum AudioSyncCommands {
kSciAudioSyncStart = 0,
kSciAudioSyncNext = 1,
kSciAudioSyncStop = 2
};
class Resource;
class ResourceId;
class ResourceManager;