Basically if there is no sound you would expect 0 when it comes to PCM.
So after you decoded mp3 data into PCM it will have all zeroes at the following offsets ( assume 44100Hz 2b 2ch ):

   between 176400 and 529200  for 1-3 secs
   between 58035600 and 64386000 for 329-365 secs

Hope it helps,
Dmitry/

----- Original Message ----- From: "Joseph Montanez" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, January 09, 2006 8:57 AM
Subject: [Pymedia-users] Decoding and figuring


I am new to understanding sound, but I am shavy enough with python. I was wondering if there was a way to figure out if there is any sound coming from a file your reading at certain times. Like how does media player now what to read to get those bars showing the sound playing?

I.E
blah.mp3
secs 1-3 [no sounds]
secs 329 -365 [no sound]




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users

Reply via email to