23 #ifndef BAGEL_BAGLIB_SOUND_OBJECT_H 24 #define BAGEL_BAGLIB_SOUND_OBJECT_H 26 #include "bagel/spacebar/baglib/object.h" 27 #include "bagel/spacebar/baglib/bagel.h" 28 #include "bagel/boflib/sound.h" 51 static void initialize();
57 ErrorCode attach()
override {
58 return attach((
CBofWindow *)CBagel::getBagApp()->getMasterWnd());
61 bool isAttached()
override {
62 return _pSound !=
nullptr;
64 ErrorCode detach()
override;
78 _wFlags = (SOUND_MIDI | SOUND_LOOP);
83 _wFlags |= SOUND_OVEROK;
86 void setSync(
bool b =
true);
87 void setASync(
bool b =
true) {
91 return _wFlags & SOUND_ASYNCH;
97 void setQueue(
bool b =
true);
99 bool runObject()
override;
101 void setVolume(
int nVol);
104 void setNumOfLoops(
int n);
106 int getProperty(
const CBofString &sProp)
override;
107 void setProperty(
const CBofString &sProp,
int nVal)
override;
119 void setPlaying(
bool bVal =
true);
Definition: ifstream.h:32
Definition: sound_object.h:36
ParseCodes setInfo(CBagIfstream &istr) override