Re: MQN
Posted: Thu May 01, 2014 11:03 pm
now mqn.bat dont work at all, window just flashes then terminates. quite frustrating when you know avx is just a bit better. just have to try some more then
You are probably on a sticky wicket if I am trying to help you but did you download a new mqn.bat file from the google drive?darkpink wrote:now mqn.bat dont work at all, window just flashes then terminates. quite frustrating when you know avx is just a bit better. just have to try some more then
Too late tonight for me to test but yours should definitely work I don't believe the asus board should be a problem.You have haswell unless 2012 is the prob. But if it played once that shouldn't be the issue unless you were mistaken it has happened to a lot of us.darkpink wrote:I have a HDplex i3 haswell, PPA-SSD, Asus B85m-g on WS2012 , just odd that it worked one time but not after reboot. Downloaded new mqn.bat from drive, how does the 3.14 avx sound?
3.14 avx is just great.darkpink wrote:I have a HDplex i3 haswell, PPA-SSD, Asus B85m-g on WS2012 , just odd that it worked one time but not after reboot. Downloaded new mqn.bat from drive, how does the 3.14 avx sound?
Code: Select all
@echo off
set rundir=%cd%
rem echo %rundir%
rem pause
Title MQn - Just good music
taskkill /fi "PID gt 0" /IM mqnplay.exe /F >nul
taskkill /fi "PID gt 0" /IM mqncontrol.exe /F >nul
rem net stop "Desktop Window Manager Session Manager"
del %rundir%\Files.txt /q
FOR /F "tokens=*" %%A IN ('CHCP') DO FOR %%B IN (%%~A) DO SET CodePage=%%B
rem chcp 65001
paste > %rundir%\param.txt
rem echo off
rem file
for /F "usebackq delims==" %%i IN (`sort %rundir%\param.txt ^| FIND /I ".wav"`) do echo %%i >> %rundir%\File1.txt
if exist %rundir%\file1.txt goto :crlf
rem folder
for /F "usebackq delims==" %%i IN (`sort %rundir%\param.txt`) DO for /f "delims=" %%f in ('dir /b "%%i\*.wav"') do echo %%i\%%f >> %rundir%\File1.txt
:crlf
rem remove cr/lf from last line
setlocal DisableDelayedExpansion
set "firstLineReady="
(
for /F "eol=$ delims=" %%a in (File1.txt) DO (
if defined firstLineReady (echo()
set "firstLineReady=1"
<nul set /p "=%%a"
)
) > %rundir%\Files.txt"
endlocal
del %rundir%\File1.txt /q
rem CHCP %CodePage%
cls
set TIMESTAMP=%TIME:~0,2%:%TIME:~3,2%:%TIME:~6,2%
echo.
echo %rundir%
echo.
echo.
echo Playback commenced - %timestamp%
echo.
for /F "usebackq delims==" %%i IN (`sort %rundir%\Files.txt`) do echo %%~ni
echo.
rem lets play music
%rundir%\MQncontrol --file "%rundir%\Files.txt"
exit
@echo on
Code: Select all
@echo off
set rundir=%cd%
rem echo %rundir%
rem pause
Title MQn - Just good music
taskkill /fi "PID gt 0" /IM mqnplay.exe /F >nul
taskkill /fi "PID gt 0" /IM mqncontrol.exe /F >nul
rem net stop "Desktop Window Manager Session Manager"
del %rundir%\Files.txt /q
FOR /F "tokens=*" %%A IN ('CHCP') DO FOR %%B IN (%%~A) DO SET CodePage=%%B
rem chcp 65001
paste > %rundir%\param.txt
rem echo off
rem file
for /F "usebackq delims==" %%i IN (`sort %rundir%\param.txt ^| FIND /I ".wav"`) do echo %%i >> %rundir%\File1.txt
if exist %rundir%\file1.txt goto :crlf
rem folder
for /F "usebackq delims==" %%i IN (`sort %rundir%\param.txt`) DO for /f "delims=" %%f in ('dir /b "%%i\*.wav"') do echo %%i\%%f >> %rundir%\File1.txt
:crlf
rem remove cr/lf from last line
setlocal DisableDelayedExpansion
set "firstLineReady="
(
for /F "eol=$ delims=" %%a in (File1.txt) DO (
if defined firstLineReady (echo()
set "firstLineReady=1"
<nul set /p "=%%a"
)
) > %rundir%\Files.txt"
endlocal
del %rundir%\File1.txt /q
rem CHCP %CodePage%
cls
set TIMESTAMP=%TIME:~0,2%:%TIME:~3,2%:%TIME:~6,2%
echo.
echo %rundir%
echo.
echo.
echo Playback commenced - %timestamp%
echo.
for /F "usebackq delims==" %%i IN (`sort %rundir%\Files.txt`) do echo %%~ni
echo.
rem lets play music
start %rundir%\MQncontrol --file "%rundir%\Files.txt"
timeout /T 5
c:\tasker -set -x "mqncontrol.exe" -p normal -a 0100
c:\tasker -set -x "mqnplay.exe" -p realtime -a 1000
c:\tasker -all -x "mqnplay.exe|mqncontrol.exe" -p normal -a 0011
call "%rundir%\448-clockrate.bat"
pause
exit
@echo on
Code: Select all
regedit /s c:\clockrate448.reg
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio]
"Clock Rate"=dword:000001c0
Hi DarkPinkdarkpink wrote:Thanks man, very helpful. Got avx working now on my desktopPC W8.1, just hade to check compabilitymode w8. Wouldn't work wtih admin box checked
But....I think you need W8 Enterprise to be able to do this. I tried JC's workaround of setting EnableLUA to 0 which seemed ok at first but then MQn failed to run until I set it to 1.Aleg wrote:darkpink wrote: I do remember I changed a setting in the security policy to avoid security elevation which intervened with running mqnplay.
If you do:
- Run
- Enter: secpol.msc
- go to Local Policies / Security Options
- find the entry called "User Account Control: Run all administrators in Admin Approval Mode"
- set it to disabled (default value = Enabled)
The problem I noticed is that starting mqnplay.exe of an avx version somehow triggered User Account Control. Being run as a batch command there was no way to get user input for this and mqnplay crashes. In the Event Log this showed as "Application Error Event ID 1000" for mqnplay.exe with "Exception code: 0xc0000005". This Exception code indicates an autorisation error which was resolved by the change above to the security policy.
Could be worthwhile to check you Event Log and try the change to the security policy, because Win8.1 is better than Win8 and maybe you not using the full capabilities now.
Cheers
Aleg
Clive wrote:But....I think you need W8 Enterprise to be able to do this. I tried JC's workaround of setting EnableLUA to 0 which seemed ok at first but then MQn failed to run until I set it to 1.Aleg wrote:darkpink wrote: I do remember I changed a setting in the security policy to avoid security elevation which intervened with running mqnplay.
If you do:
- Run
- Enter: secpol.msc
- go to Local Policies / Security Options
- find the entry called "User Account Control: Run all administrators in Admin Approval Mode"
- set it to disabled (default value = Enabled)
The problem I noticed is that starting mqnplay.exe of an avx version somehow triggered User Account Control. Being run as a batch command there was no way to get user input for this and mqnplay crashes. In the Event Log this showed as "Application Error Event ID 1000" for mqnplay.exe with "Exception code: 0xc0000005". This Exception code indicates an autorisation error which was resolved by the change above to the security policy.
Could be worthwhile to check you Event Log and try the change to the security policy, because Win8.1 is better than Win8 and maybe you not using the full capabilities now.
Cheers
Aleg