Use null filter in case no filter is used (#3109)
Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3109 Change the logic around StreamWriter preprocessing. Currently, no preprocessing is expressed as `nullptr` to `unique_ptr<FilterGraph>`. This commit changes it to `[a]null` filter, which is just a pass through. This makes a code a bit simpler, and serves better preparation for adding filters for CUDA process. Reviewed By: xiaohui-zhang Differential Revision: D43593321 fbshipit-source-id: 9ca71c2c8bf652384a0f56b4c41b32d908f61201
Showing
Please register or sign in to comment