[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11689] branches/soc-2007-hcube/intern/ tinySND/SND_Device.h: now it is origins from SND_DataConsumer.
Csaba Hruska
csaba.hruska at gmail.com
Sun Aug 19 12:40:14 CEST 2007
Revision: 11689
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11689
Author: hcube
Date: 2007-08-19 12:40:13 +0200 (Sun, 19 Aug 2007)
Log Message:
-----------
now it is origins from SND_DataConsumer.
Modified Paths:
--------------
branches/soc-2007-hcube/intern/tinySND/SND_Device.h
Modified: branches/soc-2007-hcube/intern/tinySND/SND_Device.h
===================================================================
--- branches/soc-2007-hcube/intern/tinySND/SND_Device.h 2007-08-19 10:39:07 UTC (rev 11688)
+++ branches/soc-2007-hcube/intern/tinySND/SND_Device.h 2007-08-19 10:40:13 UTC (rev 11689)
@@ -1,30 +1,24 @@
#ifndef __SND_DEVICE_H__
#define __SND_DEVICE_H__
-class SND_SoundInterface;
+#include "SND_DataConsumer.h"
-class SND_Device
+class SND_Device: public SND_DataConsumer
{
public:
- virtual ~SND_Device(){}
- // initalize sound device
- virtual bool initialize() = 0;
+ virtual ~SND_Device() {}
- // close sound device
- virtual bool finalize() = 0;
-
+ void consumeData( int framesNum ) {}
+
// enables/disables audio device temporarly
- virtual bool isEnabled() = 0;
- virtual void enable() = 0;
- virtual void disable() = 0;
+ virtual bool isEnabled() = 0;
+ virtual void enable() = 0;
+ virtual void disable() = 0;
- virtual int getNumChannels() = 0;
- virtual char* getChannelName( int hwChannelIdx ) = 0;
- // only same sample rate is acceptable that device has
- virtual void assignSoundToChannel( int hwChannelIdx, SND_SoundInterface *sound ) = 0;
+ virtual int getAudioBufferSize() = 0;
+ virtual void setAudioBufferSize( int bufferSize ) = 0;
- virtual float getSampleRate() = 0;
- virtual int getBitRate() = 0;
+ virtual char* getChannelName( int hwChannelIdx ) = 0;
};
#endif //__SND_DEVICE_H__
More information about the Bf-blender-cvs
mailing list