忘記密碼
 立即註冊
樓主: BYOB

打造終極 HiEnd HTPC - Linux 哇塞!

[複製鏈接]

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2013-5-7 23:50:25 | 顯示全部樓層
原發表者是 solo16
[B]just found out that if you set the values in .asoundrc then it will surpass the parameters given to aplay.

by any chance it can read and play .m3u playlist? [/B]


小弟也正想測試用.asoundrc來寫好參數 就不用每次打了

aplay 好像不能播放.m3u playlist, 不過我的變通方法是用萬用字元*來做選取整個專輯,

例如一個目錄下有10首歌及一些封面圖片, 可以用下列的指令

# aplay *wav

這樣aplay就會依序撥放10首歌, 而不會去讀取到圖片檔, 另播放中 不知有無next下首歌的指令, 有的話就太棒了 !

播放有中文檔名的歌曲也是可以巧妙的用*來代替

# aplay 01*
# aplay 02*
....

用習慣了其實也蠻方便的...

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-8 00:03:44 | 顯示全部樓層
Bravo!!! Wondering if the folder contains wav and mp3 if this syntax correct

aplay /*.wav *.mp3

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-8 00:06:23 | 顯示全部樓層
Third finding if the first time set the parameter for aplay it will become set for even after u stop change parameter again it still using the previous one. guess logout n login again will solve.

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2013-5-8 00:20:44 | 顯示全部樓層
原發表者是 solo16
[B]Bravo!!! Wondering if the folder contains wav and mp3 if this syntax correct

aplay /*.wav *.mp3 [/B]


可行也~ []

[root@cat 何芸妮 - 靡靡之音]# aplay *.test *.mp3
Playing WAVE '01. 序.test' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE '01.mp3' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2013-5-8 00:27:22 | 顯示全部樓層
原發表者是 solo16
[B]Third finding if the first time set the parameter for aplay it will become set for even after u stop change parameter again it still using the previous one. guess logout n login again will solve. [/B]

小弟這邊測出來似乎不一樣喔!

aplay每次參數都要設, 不然都會跑回到預設值...

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-8 00:32:06 | 顯示全部樓層
Interesting first time i set the buffer to 128 and second time i set it to 256 to test the difference however the aplay verbose shows 128 instead of 256.

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-8 00:48:09 | 顯示全部樓層
Another strange things i'm not able to play mp3 if i give the -t mp3 it says unrecognized file format.

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-8 01:43:08 | 顯示全部樓層
Another finding, with aplay i can set to the min period 64 buffer 128 but not with the .asoundrc + mocp. If set the min in .asoundrc and using mocp may encounter clicks and pop and sometime it's not able to open as well. um..... very interesting....

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2013-5-8 07:14:29 | 顯示全部樓層
原發表者是 BYOB
[B]

小弟也正想測試用.asoundrc來寫好參數 就不用每次打了

aplay 好像不能播放.m3u playlist, 不過我的變通方法是用萬用字元*來做選取整個專輯,

例如一個目錄下有10首歌及一些封面圖片, 可以用下列的指令

# aplay *wav

這樣aplay就會依序撥放10首歌, 而不會去讀取到圖片檔, 另播放中 不知有無next下首歌的指令, 有的話就太棒了 !

播放有中文檔名的歌曲也是可以巧妙的用*來代替

# aplay 01*
# aplay 02*
....

用習慣了其實也蠻方便的... [/B]


dmix似乎對聲音的影響不小,
把aplay寫成一個script就不用每次打參數了.

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2013-5-8 07:19:16 | 顯示全部樓層
原發表者是 BYOB
[B]aplay 可以用mmap參數, 為什麼MPD就不行 ! [xx(] [/B]


上次您說MPD內設定mmap不能播放,
用的是小弟修改過的mpd.
您有試過用原始的mpd設定mmap嗎?

另外, aplay和mpd所使用的alsa播放函式並不相同,
小弟目前是打算自己寫一個簡單的播放程式來做實驗,
弄清楚兩種寫法到底差別在哪裡,
有助於釐清問題.
(當初搞OSS buffer的時候, 也是自己寫了個簡易播放程式, 才弄懂要怎麼改mpd).
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|MyAV視聽商情網 test

GMT+8, 2026-11-20 01:35 , Processed in 0.238764 second(s), 41 queries .

Powered by MyAV!

快速回覆 返回頂部 返回列表