23 #ifndef BAGEL_BAGLIB_SOUND_OBJECT_H 24 #define BAGEL_BAGLIB_SOUND_OBJECT_H 26 #include "bagel/baglib/object.h" 27 #include "bagel/baglib/bagel.h" 28 #include "bagel/boflib/sound.h" 50 static void initialize();
56 ErrorCode attach()
override {
57 return attach((
CBofWindow *)CBagel::getBagApp()->getMasterWnd());
60 bool isAttached()
override {
61 return _pSound !=
nullptr;
63 ErrorCode detach()
override;
77 _wFlags = (SOUND_MIDI | SOUND_LOOP);
82 _wFlags |= SOUND_OVEROK;
85 void setSync(
bool b =
true);
86 void setASync(
bool b =
true) {
90 return _wFlags & SOUND_ASYNCH;
96 void setQueue(
bool b =
true);
98 bool runObject()
override;
100 void setVolume(
int nVol);
103 void setNumOfLoops(
int n);
105 int getProperty(
const CBofString &sProp)
override;
106 void setProperty(
const CBofString &sProp,
int nVal)
override;
118 void setPlaying(
bool bVal =
true);
ParseCodes setInfo(CBagIfstream &istr) override
Definition: ifstream.h:31
Definition: sound_object.h:35