Skip to content

Commit 8fafb2b

Browse files
committed
remove props
1 parent 8419d12 commit 8fafb2b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

open_dubbing/pydub_audio_segment.py

-12
Original file line numberDiff line numberDiff line change
@@ -1258,18 +1258,6 @@ def split_to_mono(self):
12581258
def max(self):
12591259
return audioop.max(self._data, self.sample_width)
12601260

1261-
@property
1262-
def max_possible_amplitude(self):
1263-
bits = self.sample_width * 8
1264-
max_possible_val = 2**bits
1265-
1266-
# since half is above 0 and half is below the max amplitude is divided
1267-
return max_possible_val / 2
1268-
1269-
@property
1270-
def max_dBFS(self):
1271-
return ratio_to_db(self.max, self.max_possible_amplitude)
1272-
12731261
@property
12741262
def duration_seconds(self):
12751263
return self.frame_rate and self.frame_count() / self.frame_rate or 0.0

0 commit comments

Comments
 (0)