Closed mayerwin closed 7 years ago
@mayerwin Just curious: Shouldn't you have done a Sync with the upstream master branch before doing your commits? At the time of this PR, you're 25 commits behind where handruin:master is at.
Just saw that I wasn't working on the latest version, I am merging right now and will update.
For some reason I was convinced I was already synced... My bad.
There you go. I have merged the two branches. Hopefully there is no new bug (it works fine on my end).
Some more improvements...
Just FYI, I haven't forgotten, I've been really busy the past few days. I plan to spend time tonight merging in this PR. Thanks for contributing the changes.
Hi handruin, Thanks for your project, any chance you might pull mayerwin's request into the master branche any time soon for a new release? Particularly #20 is annoying and I very much prefer your solution to the alternatives out there.
Yes, I definitely need to revisit this. I'll get this merged and a build asap.
When I try to Build Solution from this latest commit in master (https://github.com/handruin/spdif-ka/commit/c9a656064de54f6710d03380c40ebed4eceb5200), I get:
Error Unable to load DLL 'mscorsn.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) SPDIFKA
I haved implemented the features I suggested previously:
SPDIF-KA now uses NAudio instead of SoundPlayer. If Silence is selected, the inaudible sound will be played for 2 seconds as in my case it resolved an issue where the soundcard still needed to be initialized by a "real" sound, even if afterwards the silence sound was sufficient to keep it alive. SoundPlayer does not allow playing simultaneous sounds and I found it not as reliable as NAudio.
I have also partially refactored the code according to C# style standards. I know that switching convention is always annoying, so feel free to revert these changes; if you have Resharper you should be able to automatically reformat it based on your standards. Ideally the repository should contain a Resharper code styling configuration so that it is straightforward to enforce the same standards.