[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11030: Add support for storing dela
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11030: Add support for storing delaySeek value in SoundInfo |
Date: |
Mon, 08 Jun 2009 01:54:11 +0200 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 11030
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2009-06-08 01:54:11 +0200
message:
Add support for storing delaySeek value in SoundInfo
modified:
libmedia/SoundInfo.h
=== modified file 'libmedia/SoundInfo.h'
--- a/libmedia/SoundInfo.h 2009-02-25 22:33:03 +0000
+++ b/libmedia/SoundInfo.h 2009-06-07 23:54:11 +0000
@@ -53,16 +53,26 @@
///
/// @param is16bit
/// If true, the sound is in 16bit format (samplesize == 2)
- /// else it is 8bit (samplesize == 1).
- /// Used for streams when decoding adpcm.
+ /// else it is 8bit (samplesize == 1).
+ /// Used for streams when decoding adpcm.
+ ///
+ /// @param delaySeek
+ /// Number of samples to seek forward or delay.
+ /// If this value is positive, the player seeks this
+ /// number of samples into the sound block before the
+ /// sound is played.
+ /// If this value is negative the player plays this
+ /// number of silent samples before playing the sound block
///
SoundInfo(audioCodecType format, bool stereo, boost::uint32_t
sampleRate,
- boost::uint32_t sampleCount, bool is16bit)
+ boost::uint32_t sampleCount, bool is16bit,
+ boost::int16_t delaySeek=0)
:
_format(format),
_stereo(stereo),
_sampleRate(sampleRate),
_sampleCount(sampleCount),
+ _delaySeek(delaySeek),
_is16bit(is16bit)
{
}
@@ -91,6 +101,9 @@
///
unsigned long getSampleCount() const { return _sampleCount; }
+ /// Return the number of samples to seek forward or delay.
+ boost::int16_t getDelaySeek() const { return _delaySeek; }
+
/// Returns the 16bit status of the sound
//
/// @return the 16bit status of the sound
@@ -112,6 +125,9 @@
/// Number of samples
boost::uint32_t _sampleCount;
+ /// Number of samples to seek forward or delay.
+ boost::int16_t _delaySeek;
+
/// Is the audio in 16bit format (samplesize == 2)? else it
/// is 8bit (samplesize == 1). Used for streams when decoding adpcm.
bool _is16bit;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11030: Add support for storing delaySeek value in SoundInfo,
Sandro Santilli <=