Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Audio extract -- extract audo clip to MP3 file while playing media file #198

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/.git-rewrite
/.vs
/bin
/bin15
/bin17
/build.user.bat
/contrib/[Aa][Ss]tyle.exe
Expand Down
5 changes: 3 additions & 2 deletions docs/Authors.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Active (sorted by name)
Active (sorted by name)
-----------------------
Goran 'vBm' Džaferi <thevbm@users.sourceforge.net> New website, Trac moderator, IRC
JellyFrog - Server and Trac admin, Swedish
kasper93 <kasper93@users.sourceforge.net> Trac moderator, Polish, Code
XhmikosR <xhmikosr@gmail.com> Various stuff, Project manager

Yong Wang <kashwy@hotmail.com> code
Xin Tong Wang <xintong.wang1995@gmail.com> code

Inactive
--------
Expand Down
1,410 changes: 1,410 additions & 0 deletions mpc-hc.sln

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/DSUtil/DSUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ bool IsAudioWaveRenderer(IBaseFilter* pBF)
clsid == __uuidof(CNullAudioRenderer) ||
clsid == __uuidof(CNullUAudioRenderer) ||
clsid == CLSID_SANEAR_INTERNAL ||
clsid == CLSID_SANEAR;
clsid == CLSID_SANEAR ||
clsid == CLSID_InfTee; // allow the inftee to be connected from Audio Switch , 171003
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inconsistent indent

}

IBaseFilter* GetUpStreamFilter(IBaseFilter* pBF, IPin* pInputPin)
Expand Down
1 change: 1 addition & 0 deletions src/filters/Filters.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@
#include "transform/BufferFilter/BufferFilter.h"
#include "transform/DeCSSFilter/DeCSSFilter.h"
#include "RARFileSource/library/RFS.h"
#include "muxer/WavTransfer/WavTransfer.h"
65 changes: 65 additions & 0 deletions src/filters/muxer/WavTransfer/IWavTransferProperty.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*

* (C) 2017 see Authors.txt
*
* This file is part of MPC-HC.
*
* MPC-HC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* MPC-HC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

// A custom interface to allow the user to modify audio
// encoder properties
#ifndef __IWAVTRANSFERPERTIES__
#define __IWAVTRANSFERPERTIES__
#include "INITGUID.H"


DEFINE_GUID(IID_IWavTransferProperties, 0x51618802, 0x5d86, 0x4738, 0x83, 0x7f, 0x82, 0xad, 0x24, 0x30, 0x42, 0xe4);

interface __declspec(uuid("51618802-5D86-4738-837F-82AD243042E4"))
IWavTransferProperties :
public IUnknown
{

STDMETHOD(AddBuffer) (THIS_
LPWAVEHDR pwh, UINT cbwh
) PURE;
// Enable/disable PES output
STDMETHOD(EnablePreview) (THIS_
bool bpPreview
) PURE;
STDMETHOD(set_2Bytes) (THIS_
bool b2Bytes
) PURE;

STDMETHOD(GetCurrentLastTime) (THIS_
REFERENCE_TIME *pTime
) PURE;
STDMETHOD(SetCurrentLastTime) (THIS_
REFERENCE_TIME pTime
) PURE;
STDMETHOD(SetBufferEvent) (

) PURE;
// Get target compression bitrate in Kbits/s

};



#endif