[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10998] branches/soc-2007-hcube/intern/ tinySND/sdl: Added new features.
Csaba Hruska
csaba.hruska at gmail.com
Thu Jun 21 14:15:41 CEST 2007
Revision: 10998
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10998
Author: hcube
Date: 2007-06-21 14:15:40 +0200 (Thu, 21 Jun 2007)
Log Message:
-----------
Added new features.
Modified Paths:
--------------
branches/soc-2007-hcube/intern/tinySND/sdl/SDLDevice.cpp
branches/soc-2007-hcube/intern/tinySND/sdl/SDLDevice.h
Modified: branches/soc-2007-hcube/intern/tinySND/sdl/SDLDevice.cpp
===================================================================
--- branches/soc-2007-hcube/intern/tinySND/sdl/SDLDevice.cpp 2007-06-21 12:15:14 UTC (rev 10997)
+++ branches/soc-2007-hcube/intern/tinySND/sdl/SDLDevice.cpp 2007-06-21 12:15:40 UTC (rev 10998)
@@ -140,3 +140,13 @@
}
mSounds[ hwChannelIdx ] = sound;
}
+
+float SDLDevice::getSampleRate(void)
+{
+ return 44100.0;
+}
+
+int SDLDevice::getBitRate(void)
+{
+ return 16;
+}
Modified: branches/soc-2007-hcube/intern/tinySND/sdl/SDLDevice.h
===================================================================
--- branches/soc-2007-hcube/intern/tinySND/sdl/SDLDevice.h 2007-06-21 12:15:14 UTC (rev 10997)
+++ branches/soc-2007-hcube/intern/tinySND/sdl/SDLDevice.h 2007-06-21 12:15:40 UTC (rev 10998)
@@ -18,6 +18,9 @@
char* getChannelName( int hwChannelIdx );
void assignSoundToChannel( int hwChannelIdx, SND_SoundInterface *sound );
+ float getSampleRate();
+ int getBitRate();
+
private:
static void fill_audio(void *udata, Uint8 *stream, int len);
void fill_audio_do(Sint16 *stream, int len);
More information about the Bf-blender-cvs
mailing list