[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11008] branches/soc-2007-hcube/intern/ tinySND/portaudio: Added isEnabled method.
Csaba Hruska
csaba.hruska at gmail.com
Fri Jun 22 18:57:15 CEST 2007
Revision: 11008
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11008
Author: hcube
Date: 2007-06-22 18:57:15 +0200 (Fri, 22 Jun 2007)
Log Message:
-----------
Added isEnabled method.
Modified Paths:
--------------
branches/soc-2007-hcube/intern/tinySND/portaudio/portaudioDevice.cpp
branches/soc-2007-hcube/intern/tinySND/portaudio/portaudioDevice.h
Modified: branches/soc-2007-hcube/intern/tinySND/portaudio/portaudioDevice.cpp
===================================================================
--- branches/soc-2007-hcube/intern/tinySND/portaudio/portaudioDevice.cpp 2007-06-22 16:56:27 UTC (rev 11007)
+++ branches/soc-2007-hcube/intern/tinySND/portaudio/portaudioDevice.cpp 2007-06-22 16:57:15 UTC (rev 11008)
@@ -58,6 +58,7 @@
return false;
}
+ disable();
return true;
}
@@ -169,12 +170,19 @@
mSounds[ hwChannelIdx ] = sound;
}
+bool portaudioDevice::isEnabled(void)
+{
+ return mIsEnabled;
+}
+
void portaudioDevice::enable(void)
{
+ mIsEnabled = true;
}
void portaudioDevice::disable(void)
{
+ mIsEnabled = false;
}
float portaudioDevice::getSampleRate(void)
Modified: branches/soc-2007-hcube/intern/tinySND/portaudio/portaudioDevice.h
===================================================================
--- branches/soc-2007-hcube/intern/tinySND/portaudio/portaudioDevice.h 2007-06-22 16:56:27 UTC (rev 11007)
+++ branches/soc-2007-hcube/intern/tinySND/portaudio/portaudioDevice.h 2007-06-22 16:57:15 UTC (rev 11008)
@@ -11,6 +11,7 @@
bool initialize();
bool finalize();
+ bool isEnabled();
void enable();
void disable();
@@ -28,6 +29,7 @@
SND_SoundInterface *mSounds[6];
portaudio::AutoSystem *mAutoSys;
portaudio::MemFunCallbackStream<portaudioDevice> *mStream;
+ bool mIsEnabled;
};
#endif //__PORTAUDIODEVICE_H__
More information about the Bf-blender-cvs
mailing list