Add files to media namespace

Originally committed to SVN as r5301.
This commit is contained in:
Amar Takhar 2011-02-06 03:08:51 +00:00
parent e18ad3768b
commit e55ad2ed4d
7 changed files with 31 additions and 0 deletions

View file

@ -52,6 +52,8 @@
#include "standard_paths.h" #include "standard_paths.h"
#include "utils.h" #include "utils.h"
namespace media {
/// @brief Constructor /// @brief Constructor
/// @param _filename /// @param _filename
/// ///
@ -168,3 +170,5 @@ void AvisynthAudioProvider::GetAudio(void *buf, int64_t start, int64_t count) co
} }
} }
#endif #endif
} // namespace

View file

@ -39,6 +39,8 @@
#include "avisynth_wrap.h" #include "avisynth_wrap.h"
namespace media {
/// DOCME /// DOCME
/// @class AvisynthAudioProvider /// @class AvisynthAudioProvider
/// @brief DOCME /// @brief DOCME
@ -66,3 +68,6 @@ public:
void GetWaveForm(int *min,int *peak,int64_t start,int w,int h,int samples,float scale); void GetWaveForm(int *min,int *peak,int64_t start,int w,int h,int samples,float scale);
}; };
#endif #endif
} // namespace

View file

@ -36,6 +36,8 @@
#include "include/aegisub/audio_provider.h" #include "include/aegisub/audio_provider.h"
namespace media {
/// DOCME /// DOCME
/// @class DummyAudioProvider /// @class DummyAudioProvider
/// @brief DOCME /// @brief DOCME
@ -52,3 +54,6 @@ public:
bool AreSamplesNativeEndian() const { return true; } bool AreSamplesNativeEndian() const { return true; }
void GetAudio(void *buf, int64_t start, int64_t count) const; void GetAudio(void *buf, int64_t start, int64_t count) const;
}; };
} // namespace

View file

@ -40,6 +40,8 @@
#include "utils.h" #include "utils.h"
namespace media {
/// @brief Constructor /// @brief Constructor
/// @param dur_ms /// @param dur_ms
/// @param _noise /// @param _noise
@ -74,3 +76,6 @@ void DummyAudioProvider::GetAudio(void *buf, int64_t start, int64_t count) const
*workbuf++ = 0; *workbuf++ = 0;
} }
} }
} // namespace

View file

@ -221,3 +221,5 @@ void Audio::GetAudio(void *Buf, int64_t Start, int64_t Count) const {
} }
} // namespace ffms } // namespace ffms
} // namespace media } // namespace media

View file

@ -59,6 +59,8 @@
#include "utils.h" #include "utils.h"
namespace media {
/// @brief DOCME /// @brief DOCME
/// @param filename /// @param filename
/// ///
@ -629,3 +631,6 @@ AudioProvider *CreatePCMAudioProvider(const wxString &filename)
throw AudioOpenError(msg); throw AudioOpenError(msg);
} }
} }
} // namespace

View file

@ -48,6 +48,8 @@
#include "include/aegisub/audio_provider.h" #include "include/aegisub/audio_provider.h"
namespace media {
/// DOCME /// DOCME
/// @class PCMAudioProvider /// @class PCMAudioProvider
/// @brief DOCME /// @brief DOCME
@ -113,3 +115,6 @@ public:
// Construct the right PCM audio provider (if any) for the file // Construct the right PCM audio provider (if any) for the file
AudioProvider *CreatePCMAudioProvider(const wxString &filename); AudioProvider *CreatePCMAudioProvider(const wxString &filename);
} // namespace