Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
add version to help listing
Browse files Browse the repository at this point in the history
  • Loading branch information
ToadKing committed Aug 3, 2020
1 parent 57e3d0a commit 7e2aeea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mono-to-stereo/mono-to-stereo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// loopback-capture.h
// mono-to-stereo.h

// call CreateThread on this function
// feed it the address of a LoopbackCaptureThreadFunctionArguments
Expand All @@ -7,6 +7,8 @@
// until the stop event is set
// any failures will be propagated back via hr

#define VERSION L"0.2"

struct LoopbackCaptureThreadFunctionArguments {
IMMDevice *pMMInDevice;
IMMDevice *pMMOutDevice;
Expand Down
4 changes: 3 additions & 1 deletion mono-to-stereo/prefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ HRESULT get_specific_device(LPCWSTR szLongName, EDataFlow direction, IMMDevice *

void usage(LPCWSTR exe) {
LOG(
L"mono-to-stereo v%s\n"
L"\n"
L"%ls -?\n"
L"%ls --list-devices\n"
L"%ls [--in-device \"Device long name\"] [--out-device \"Device long name\"] [--buffer-size 128] [--no-swap-channels]\n"
Expand All @@ -22,7 +24,7 @@ void usage(LPCWSTR exe) {
L" --out-device device to stream stereo audio to (default if omitted)\n"
L" --buffer-size set the size of the audio buffer, in milliseconds (default to %dms)\n"
L" --no-swap-channels do not swap the L/R channels",
exe, exe, exe, DEFAULT_BUFFER_MS
VERSION, exe, exe, exe, DEFAULT_BUFFER_MS
);
}

Expand Down

0 comments on commit 7e2aeea

Please sign in to comment.