Announcement

Collapse
No announcement yet.

Detect Silence / Trigger Event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Other question for Dllmain, how works this plugin you made? Is this a volume-level based plugin, or looks the plugin to winamp if it plays or not?
    it checks if the last call of ModifySamples() is older than 5 seconds every 2 seconds.
    GPL Freeverb Winamp Plugin

    Comment


    • #17
      It's a great plugin Sebastian, simple, but exactly what I mean!

      Roland.

      Comment


      • #18
        Silence Detector v1.0

        well i assume this works since it works fine on the files locally i could test which have silences but for all i know only dllmain's method may be suitable for this situation

        -daz
        WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

        Comment


        • #19
          @dro
          the options are nice. how does your plugin do the silence detection exactly? can we have the source?
          GPL Freeverb Winamp Plugin

          Comment


          • #20
            code:
            int modify_samples1(struct winampDSPModule *this_mod,
            short int *samples,
            int numsamples, int bps, int nch, int srate){
            int x = 0, s = numsamples*nch, beep = 0;

            for(x = 0; x < s; x ++){if(!samples[x]){beep+=1;}}

            if(beep >= s){
            if(!timer){timer = SetTimer(this_mod->hwndParent,1997,
            wait,restart);}
            }
            else{if(timer){
            KillTimer(this_mod->hwndParent,timer);timer = 0;}
            }

            return numsamples;
            }

            edited to not break the frames and that's the core part of the plugin with it setting/removing the timer as required when null samples/valid samples are detected

            -daz
            WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

            Comment


            • #21
              so you are detecting "digital silence". i thought you were analyzing the volume level.
              GPL Freeverb Winamp Plugin

              Comment


              • #22
                Originally posted by DrO
                code:
                int modify_samples1(struct winampDSPModule *this_mod,
                short int *samples,
                int numsamples, int bps, int nch, int srate){
                int x = 0, s = numsamples*nch, beep = 0;

                for(x = 0; x < s; x ++){if(!samples[x]){beep+=1;}}

                if(beep >= s){
                if(!timer){timer = SetTimer(this_mod->hwndParent,1997,
                wait,restart);}
                }
                else{if(timer){
                KillTimer(this_mod->hwndParent,timer);timer = 0;}
                }

                return numsamples;
                }

                edited to not break the frames and that's the core part of the plugin with it setting/removing the timer as required when null samples/valid samples are detected

                -daz
                I like the idea of this pluggie.... man I cant count how many times I have thought my music stopped when it really is just playing 10 minutes of silence before the hidden track kind of thing. (depending on the options.... going to dl tonight, will have to request the option to skip to the next song, but I have a feelign you already thought of that :P)

                err better question, is one plugin better then the other (lol I geuss i like starting conflict)

                just out of curiousity, how often does this checking get done? Just curious about resources I guess (probably could stop that loop at the first non-zero bit too :P)
                Crackity
                QuickTracks: Info & Most Recent

                Comment


                • #23
                  Maybe is it a idea to make that with some options?

                  How long must the detector wait before it send a play-request, or/and if you make it on the volume-level, maybe you can config how much dB means silence for the detector.

                  Some music-files have a silence for a copple of seconds...

                  Go go go, and make it! I still have one of dllmain, and it works very good. My internet-connection goes offline today and the plugin sends a play-request, again and again. Even so, after 5 minutes my internetlink is online and yes, winamp connects automatically, and the music goes on.

                  Veeeeeeeeeeeeeeeeeeery good!

                  Roland.

                  Comment


                  • #24
                    jumps to next playlist entry

                    Thanks guy's for working all this out. I have tried both the Silence_Detector_v1_0 & dsp_restless plugins. The Silence_Detector still hung @ 0% buffering so I tried the dsp_restless and it tends to jump to the next enty in the playlist and still has hangs @ 0% . Is there anyway to improve the performace or are there any other solutions out there?

                    Comment


                    • #25
                      well as far as i can remember dsp_restless only emulates hitting "play" not "next track". so i guess this means your playlist entry is just not playable. i know this behavior from trying to play moved mp3 files. does this help?
                      GPL Freeverb Winamp Plugin

                      Comment


                      • #26
                        thanks for the quick response...
                        even with just one playlist entry I still get the buffering with both plugins and I have tried diifernt entries. This is a new phenomonon in the last couple of weeks. I startrd a new thread here ( http://forums.winamp.com/showthread....hreadid=238803 ) on this with more detail of what I am experiencing. Thanks for the input dllmain, I'll keep looking for a solution...

                        Comment


                        • #27
                          Is it possible for the plugin to not be dsp based ?

                          I have on the same computer winamp that gets an internet stream from a radio station and then re-encodes it and broadcasts it to the shoutcast server running in the background.

                          This is why I can't use both DSP plugins (the shoutcast one and the silence detection).

                          Comment


                          • #28
                            Originally posted by skyraven This is why I can't use both DSP plugins (the shoutcast one and the silence detection). [/B]
                            A DSP stacker plugin should help here. There are several plugins allowing to use more than one DSP plugin at the same time.
                            GPL Freeverb Winamp Plugin

                            Comment


                            • #29
                              Thanks for the answer.

                              Sorry if this has been asked before.

                              Comment


                              • #30
                                Originally posted by skyraven
                                Thanks for the answer.

                                Sorry if this has been asked before.
                                You're welcome. I'm glad I could help.
                                GPL Freeverb Winamp Plugin

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎