Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /libkwave/PlaybackDeviceFactory.h [3e4acc] .. [1f6d2f] Maximize Restore

  Switch to side-by-side view

--- a/libkwave/PlaybackDeviceFactory.h
+++ b/libkwave/PlaybackDeviceFactory.h
@@ -20,47 +20,54 @@
 
 // some forward declarations
 class PlayBackParam;
-class PlayBackDevice;
 class QString;
 
-class PlaybackDeviceFactory
+namespace Kwave
 {
-public:
-    /** virtual destructor, just to satisfy gcc */
-    virtual ~PlaybackDeviceFactory()
+    class PlayBackDevice;
+
+    class PlaybackDeviceFactory
     {
-    }
+    public:
+	/** virtual destructor, just to satisfy gcc */
+	virtual ~PlaybackDeviceFactory()
+	{
+	}
 
-    /**
-     * Opens and initializes the playback device. If the initialization
-     * worked, it returns a valid pointer. On any errors m_device
-     * will be 0. If a device was open before, it will be closed.
-     * @param name the name of the logical playback device or the name
-     *             of the lowlevel device. If null or zero-length, the
-     *             default device will be used.
-     * @param tracks number of tracks,
-     *               if negative use the setting of playback_params
-     * @param playback_params points to a structure with playback
-     *                        parameters. If null, the default parameters
-     *                        of the current signal will be used
-     * @return a pointer to an opened PlayBackDevice or null if something
-     *         failed
-     * @see PlayBackDevice
-     */
-    virtual PlayBackDevice *openDevice(const QString &name,
-	int tracks = -1,
-	const PlayBackParam *playback_params = 0) = 0;
+	/**
+	* Opens and initializes the playback device. If the initialization
+	* worked, it returns a valid pointer. On any errors m_device
+	* will be 0. If a device was open before, it will be closed.
+	* @param name the name of the logical playback device or the name
+	*             of the lowlevel device. If null or zero-length, the
+	*             default device will be used.
+	* @param tracks number of tracks,
+	*               if negative use the setting of playback_params
+	* @param playback_params points to a structure with playback
+	*                        parameters. If null, the default parameters
+	*                        of the current signal will be used
+	* @return a pointer to an opened PlayBackDevice or null if something
+	*         failed
+	* @see PlayBackDevice
+	*/
+	virtual Kwave::PlayBackDevice *openDevice(const QString &name,
+	    int tracks = -1,
+	    const PlayBackParam *playback_params = 0) = 0;
 
-    /**
-     * Returns true if the given device name is supported
-     * and can be used for openDevice.
-     * @param name the name of a playback device
-     * @return true if supported
-     * @see openDevice
-     */
-    virtual bool supportsDevice(const QString &name) = 0;
+	/**
+	* Returns true if the given device name is supported
+	* and can be used for openDevice.
+	* @param name the name of a playback device
+	* @return true if supported
+	* @see openDevice
+	*/
+	virtual bool supportsDevice(const QString &name) = 0;
 
 
-};
+    };
+}
 
 #endif /* _PLAYBACK_DEVICE_FACTORY_H_ */
+
+//***************************************************************************
+//***************************************************************************