Skip to content
Discussion options

You must be logged in to vote

Sorry for the late response. The issue arises from a misunderstanding of the roles. The SoundPlayer is actually the component that provides the data, serving as the input, whereas the ReplayGainComponent takes the buffer from SoundPlayer as its input and applies modifications to it.

You need to do this

        // 2. Create a SoundPlayer 
        var soundPlayer = new SoundPlayer(new StreamDataProvider(File.OpenRead(@"D:\Music\Personal Collection\尹昔眠 - Can't Escape Reincarnation.mp3")));
        
        // 3. Create Gain component
        var gainComponent = new ReplayGainComponent();
        
        // 4. Connect SoundPlayer to the gain component
        gainComponent.ConnectInput(sound…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LSXPrime
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants