| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="content-type" content="text/html; charset=windows-1252"/> |
| 5 |
<title></title> |
| 6 |
<meta name="generator" content="LibreOffice 7.0.3.1 (Windows)"/> |
| 7 |
<meta name="created" content="2021-02-03T20:00:54"/> |
| 8 |
<meta name="changed" content="2021-02-13T16:28:26.399000000"/> |
| 9 |
<style type="text/css"> |
| 10 |
@page { size: 8.5in 11in; margin: 0.79in } |
| 11 |
p { margin-bottom: 0.1in; direction: ltr; color: #00000a; line-height: 115%; text-align: left; orphans: 2; widows: 2; background: transparent } |
| 12 |
p.western { font-family: "Arial", sans-serif; font-size: 12pt; so-language: en-US } |
| 13 |
p.cjk { font-family: "NSimSun"; font-size: 12pt; so-language: zh-CN } |
| 14 |
p.ctl { font-family: "Arial"; font-size: 12pt; so-language: hi-IN } |
| 15 |
a:link { color: #000080; so-language: zxx; text-decoration: underline } |
| 16 |
a:visited { color: #800000; so-language: zxx; text-decoration: underline } |
| 17 |
</style> |
| 18 |
</head> |
| 19 |
<body lang="en-US" text="#00000a" link="#000080" vlink="#800000" dir="ltr"><p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 20 |
<br/> |
| 21 |
|
| 22 |
</p> |
| 23 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 24 |
<br/> |
| 25 |
|
| 26 |
</p> |
| 27 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 28 |
<b>GENERAL INFORMATION ON RUNNING MPG123 IN A WINDOWS ENVIR</b><b>O</b><b>NMENT</b></p> |
| 29 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 30 |
<br/> |
| 31 |
|
| 32 |
</p> |
| 33 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 34 |
<i>(Caution- This is a brief guide, based on my experience running |
| 35 |
MPG123 under Windows. This is NOT a sanctioned document from the |
| 36 |
MPG123 team. It has not been reviewed by MPG123 for accuracy or |
| 37 |
completeness. Use this information at your own risk. DON'T submit |
| 38 |
tickets to MPG123 based on anything you read in this document, and |
| 39 |
there is NO guarantee as to the validity of information contained |
| 40 |
herein. -- J. Amick - 2021-02-13 ) </i> |
| 41 |
</p> |
| 42 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 43 |
<br/> |
| 44 |
|
| 45 |
</p> |
| 46 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 47 |
A portable (no installation required) MPG123.EXE can be downloaded |
| 48 |
from “<span style="font-variant: normal"><font color="#330000"><font face="sans, sans-serif"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">Win32 |
| 49 |
and Win64 binaries” at </span></span></span></font></font></span>WWW.MPG123.DE<span style="font-variant: normal"><font color="#330000"><font face="sans, sans-serif"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">. |
| 50 |
</span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font face="Arial, sans-serif"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">The |
| 51 |
file you want is </span></span></span></font></font></span><font color="#000080"><span lang="zxx"><span style="text-decoration: none">mpg123-v-static-x86-bb.zip</span></span></font><font color="#000080"><span lang="zxx"><span style="font-variant: normal"><font color="#330000"><font face="Arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">,</span></span></span></span></font></font></font></span></span></font><span style="font-variant: normal"><font color="#330000"><font face="Arial, sans-serif"><font size="4" style="font-size: 14pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal"> |
| 52 |
</span></span></span></span></font></font></font></span><span style="font-variant: normal"><font color="#330000"><font face="Arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">where |
| 53 |
v (version) is currently “1.26.4” </span></span></span></span></font></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">and |
| 54 |
bb (your system architecture) is either “32” or “64” |
| 55 |
bit.. Extract the entire downloaded zip. Consider creating a new |
| 56 |
target directory named MPG123 in “Program Files”. Make |
| 57 |
sure the target directory is included in your PATH system environment |
| 58 |
variable- add if necessary. </span></span></span></span></font></font></span> |
| 59 |
</p> |
| 60 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 61 |
<br/> |
| 62 |
|
| 63 |
</p> |
| 64 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 65 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">Command |
| 66 |
Line usage: </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#444444"><font face="verdana, helvetica, arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><b>mpg123</b></span></span></span></font></font></font></span><span style="font-variant: normal"><font color="#444444"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal"> |
| 67 |
</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#444444"><font face="verdana, helvetica, arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">[ |
| 68 |
</span></span></span></span></font></font></font></span><span style="font-variant: normal"><font color="#444444"><font face="verdana, helvetica, arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><b>options |
| 69 |
</b></span></span></span></font></font></font></span><span style="font-variant: normal"><font color="#444444"><font face="verdana, helvetica, arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">] |
| 70 |
</span></span></span></span></font></font></font></span><span style="font-variant: normal"><font color="#444444"><font face="verdana, helvetica, arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><i><span style="text-decoration: none"><span style="font-weight: normal">file</span></span></i></span></font></font></font></span><span style="font-variant: normal"><font color="#444444"><font face="verdana, helvetica, arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal"> |
| 71 |
... </span></span></span></span></font></font></font></span><span style="font-variant: normal"><font color="#444444"><font face="verdana, helvetica, arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><i><span style="text-decoration: none"><span style="font-weight: normal">| |
| 72 |
URL </span></span></i></span></font></font></font></span><span style="font-variant: normal"><font color="#444444"><font face="verdana, helvetica, arial, sans-serif"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">... |
| 73 |
| -</span></span></span></span></font></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal"> |
| 74 |
</span></span></span></span></font></font></span> |
| 75 |
</p> |
| 76 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 77 |
<br/> |
| 78 |
|
| 79 |
</p> |
| 80 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 81 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">file |
| 82 |
…</span></span></span></span></font></font></span></p> |
| 83 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 84 |
<br/> |
| 85 |
|
| 86 |
</p> |
| 87 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 88 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">Windows |
| 89 |
full path file name(s), </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><i><span style="text-decoration: none"><span style="font-weight: normal">surrounded |
| 90 |
by double quotes</span></span></i></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">. |
| 91 |
The * wildcard is OK. For example: “F:\Music\*.mp3”. |
| 92 |
</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">Surrounding |
| 93 |
d</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">ouble |
| 94 |
quotes allow file/folder names contain</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">ing</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal"> |
| 95 |
blanks.</span></span></span></span></font></font></span></p> |
| 96 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 97 |
<br/> |
| 98 |
|
| 99 |
</p> |
| 100 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 101 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">Option |
| 102 |
[-a </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><i><span style="text-decoration: none"><span style="font-weight: normal">dev</span></span></i></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">] |
| 103 |
</span></span></span></span></font></font></span> |
| 104 |
</p> |
| 105 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 106 |
<br/> |
| 107 |
|
| 108 |
</p> |
| 109 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 110 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">Specify |
| 111 |
the audio device to use. If not present on the command line, MPG123 |
| 112 |
will use the Windows default audio device- sharing the same audio |
| 113 |
channel with normal Windows sounds. If you want MPG123 to play |
| 114 |
through a separate/dedicated audio channel, you have to provide |
| 115 |
another audio device (sound card, USB sound device, etc). To see |
| 116 |
what sound devices are </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">installed |
| 117 |
and </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">available |
| 118 |
in your Windows system, access and run the “Device Manager” |
| 119 |
(devmgmt.msc). Click to expand “Sound, video and game |
| 120 |
controllers”. Identify the desired sound device and |
| 121 |
double-click or right click to “Properties”. Select the |
| 122 |
“Details” tab, and look for Property “Device |
| 123 |
instance path” (Win 10) or “Device instance id” |
| 124 |
(Win XP). The “Value” box will contain one or more |
| 125 |
lines- the first line is the one you want- and looks something like |
| 126 |
this: USB\VID_0D8C&PID_0014&MI_00\6&175BA917&0&0000. |
| 127 |
If you type this line on the command line, surround it with double |
| 128 |
quotes. Consider saving this </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">(including |
| 129 |
the surrounding double quotes) </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">as |
| 130 |
a System environment variable, </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">to</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal"> |
| 131 |
eliminate a lot of future typing if debugging a BAT file: System |
| 132 |
Properties > Environment Variables > System Variables.</span></span></span></span></font></font></span></p> |
| 133 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 134 |
<br/> |
| 135 |
|
| 136 |
</p> |
| 137 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 138 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">If |
| 139 |
you have multiple sound devices in your computer, confirm the Windows |
| 140 |
Default Sound Device is set to the one you want for </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">any |
| 141 |
audio </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">other |
| 142 |
than </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">that |
| 143 |
</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">generated |
| 144 |
by </span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">MPG123.</span></span></span></span></font></font></span></p> |
| 145 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 146 |
<br/> |
| 147 |
|
| 148 |
</p> |
| 149 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 150 |
<br/> |
| 151 |
|
| 152 |
</p> |
| 153 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 154 |
<br/> |
| 155 |
|
| 156 |
</p> |
| 157 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 158 |
<br/> |
| 159 |
|
| 160 |
</p> |
| 161 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 162 |
<br/> |
| 163 |
|
| 164 |
</p> |
| 165 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 166 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><b>CASE |
| 167 |
STUDY- SOUND SOURCE FOR TELEPHONE SYSTEM MUSIC ON HOLD</b></span></span></span></font></font></span></p> |
| 168 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 169 |
<br/> |
| 170 |
|
| 171 |
</p> |
| 172 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 173 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">I |
| 174 |
needed a music source to implement “Music on Hold” in our |
| 175 |
office phone system. In the past, personal CD/MP3 players have |
| 176 |
sufficed, but none would last more than a year playing continuously. |
| 177 |
All the inexpensive I-Pod type MP3 players I found couldn’t |
| 178 |
play and charge at the same time. The solution came in the form of |
| 179 |
MPG123 playing a folder of MP3 files on an old XP computer running |
| 180 |
unattended in the phone closet, still doing batch file document |
| 181 |
backups. A channel of MOH audio exclusively for the phone system was |
| 182 |
added in the form of a Sabrent USB-SBCV plug-in audio generator |
| 183 |
device capable of continuous</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><i><span style="text-decoration: none"><span style="font-weight: normal"> |
| 184 |
</span></span></i></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">play |
| 185 |
for less than $10 (Amazon). This device requires NO external |
| 186 |
drivers- truly plug and play.</span></span></span></span></font></font></span></p> |
| 187 |
<p class="western" align="left" style="margin-bottom: 0in; font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 100%; text-decoration: none"> |
| 188 |
<br/> |
| 189 |
|
| 190 |
</p> |
| 191 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 192 |
<span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">This |
| 193 |
application required MPG123 to play a continuous loop of every MP3 |
| 194 |
file found in a folder named “Music On Hold”. MPG123 has |
| 195 |
the -Z option which does this directly, but files are played in |
| 196 |
random order. I preferred to have the files looped in alphabetical |
| 197 |
order, which MPG123 will not directly do. A short batch file |
| 198 |
(created in the same directory as MPG123.</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">EXE</span></span></span></span></font></font></span><span style="font-variant: normal"><font color="#330000"><font size="3" style="font-size: 12pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="text-decoration: none"><span style="font-weight: normal">) |
| 199 |
takes care of this problem. As a template, copy and paste the |
| 200 |
following lines into Notepad, and save as a BAT file:</span></span></span></span></font></font></span></p> |
| 201 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 202 |
<br/> |
| 203 |
|
| 204 |
</p> |
| 205 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 206 |
@echo off</p> |
| 207 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 208 |
rem Start up an infinite loop</p> |
| 209 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 210 |
for /L %%n in () do (</p> |
| 211 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 212 |
rem Play mp3 files in alphabetical order from specified directory</p> |
| 213 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 214 |
for %%f in ("G:\music on hold\*.mp3") do (</p> |
| 215 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 216 |
mpg123 -m -a %Sabrent% ^"%%f^" ))</p> |
| 217 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 218 |
<br/> |
| 219 |
|
| 220 |
</p> |
| 221 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 222 |
This batch file presumes a Sabrent system environment variable set |
| 223 |
from the sound device property details as described earlier. |
| 224 |
Substitute the correct location of your MP3 files. Remove the -m |
| 225 |
option if you want stereo. |
| 226 |
</p> |
| 227 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 228 |
<br/> |
| 229 |
|
| 230 |
</p> |
| 231 |
<p class="western" align="left" style="margin-bottom: 0in; line-height: 100%"> |
| 232 |
This batch file can be initiated directly from a scheduled task |
| 233 |
created to launch when windows starts (or other trigger). Each |
| 234 |
version of Windows has its own idiosyncrasies starting a batch file |
| 235 |
from a scheduled task, and I recommend a Google search if you have |
| 236 |
difficulties. Ditto for having the batch file run in a minimized CMD |
| 237 |
window, or no window at all. Consider flushing all console output |
| 238 |
(stdout and stderr) when you invoke the batch file from a scheduled |
| 239 |
task. For this batch file saved as PLAYEM.BAT- enter “PLAYEM > |
| 240 |
nul 2>&1” on the command line<span style="font-variant: normal"><font color="#242729"><font face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">.</span></span></span></font></font></font></span> |
| 241 |
</p> |
| 242 |
</body> |
| 243 |
</html> |