Skip to content

Commit

Permalink
Deleted Set/GetAudioTimestampScale()
Browse files Browse the repository at this point in the history
  • Loading branch information
dimiden committed Nov 14, 2024
1 parent db953db commit 3c6eee0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions src/projects/base/info/audio_track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ int32_t AudioTrack::GetSampleRate() const
return (int32_t)_sample.GetRate();
}

void AudioTrack::SetAudioTimestampScale(double scale)
{
_audio_timescale = scale;
}

double AudioTrack::GetAudioTimestampScale() const
{
return _audio_timescale;
}

AudioSample &AudioTrack::GetSample()
{
return _sample;
Expand Down
3 changes: 0 additions & 3 deletions src/projects/base/info/audio_track.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ class AudioTrack
void SetSampleRate(int32_t samplerate);
int32_t GetSampleRate() const;

void SetAudioTimestampScale(double scale);
double GetAudioTimestampScale() const;

cmn::AudioSample &GetSample();
const cmn::AudioSample &GetSample() const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ namespace mpegts
track->SetCodecId(cmn::MediaCodecId::Aac);
track->SetOriginBitstream(cmn::BitstreamFormat::AAC_ADTS);
track->SetTimeBase(1, 90000);
track->SetAudioTimestampScale(90000/1000);
break;

default:
Expand Down
4 changes: 0 additions & 4 deletions src/projects/providers/rtmp/rtmp_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1812,9 +1812,6 @@ namespace pvd
return false;
}

pts *= audio_track->GetAudioTimestampScale();
dts *= audio_track->GetAudioTimestampScale();

if (_is_incoming_timestamp_used == false)
{
AdjustTimestamp(pts, dts);
Expand Down Expand Up @@ -1984,7 +1981,6 @@ namespace pvd
new_track->SetCodecId(cmn::MediaCodecId::Aac);
new_track->SetOriginBitstream(cmn::BitstreamFormat::AAC_RAW);
new_track->SetTimeBase(1, 1000);
new_track->SetAudioTimestampScale(1.0);

//////////////////
// Below items are not mandatory, it will be parsed again from ADTS parser
Expand Down
1 change: 0 additions & 1 deletion src/projects/providers/webrtc/webrtc_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ namespace pvd
audio_track->SetId(ssrc);
audio_track->SetMediaType(cmn::MediaType::Audio);
audio_track->SetTimeBase(1, samplerate);
audio_track->SetAudioTimestampScale(1.0);

if (channels == 1)
{
Expand Down

0 comments on commit 3c6eee0

Please sign in to comment.