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

打造終極 HiEnd HTPC - Linux 哇塞!

[複製鏈接]

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2013-5-7 00:26:04 | 顯示全部樓層
原發表者是 bchsieh
[B]

理想的改法是讓buffer size自由設定,
但這需要花時間去細讀程式,
以小弟目前的狀況, 短時間內難以完成.

而如果只是將8192改成另外一個定值, 這就相對容易,
只是到底要改成哪個值?
而且每換一個值就得全部從頭改一遍, 挺沒效率的.

小弟在前面也有提過, 小弟認為buffer size對聲音的影響
應該遠小於period size,
而目前的瓶頸應該在plughw.
小弟竊以為, 在資源和時間有限的情況下,
也許應該投資在jack, 或將player支援MMAP_COMPLEX上. [/B]

小弟在想jack弄不起來是否與此有關

明日拿一張RME digi96/PAD舊卡來試試看

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-7 20:12:51 | 顯示全部樓層
Hi bchsieh,

I'm trying to help finding more documentation / sample coding and pass to Mocp developer,
however it doesn't seems to have much information on mmap_complex, so just wondering could you please kindly direct me to the right places so I can try to help to consolidate the information and pass to mocp developer?

Thx!

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-7 20:31:51 | 顯示全部樓層
I just came across a thought, is aplay support mmap_complex?

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2013-5-7 21:05:30 | 顯示全部樓層
原發表者是 solo16
[B]I just came across a thought, is aplay support mmap_complex? [/B]

今日最新測試結果是不行的...但是有支援mmap, 聲音差很大喔 !

-M, --mmap Use memory-mapped (mmap) I/O mode for the audio stream. If this option is not set, the read/write I/O mode will be used.

播放例子

# aplay -vMF 725  xxx.wav

-M, --mmap
-v, --verbose  (顯示詳細資訊)
-F, --period-time=# (725同等period_size 32)

# aplay test.wav device=hw:0,0  (如果指定hw:0,0這樣就會有錯誤了)

Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1233: Sample format non available
Available formats:
- S32_LE
- FLOAT_LE

顯示格式錯誤, 但就算格式指定S32_LE 一樣不行!

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2013-5-7 21:19:11 | 顯示全部樓層
原發表者是 BYOB
[B]
今日最新測試結果是不行的...但是有支援mmap, 聲音差很大喔 !

-M, --mmap Use memory-mapped (mmap) I/O mode for the audio stream. If this option is not set, the read/write I/O mode will be used.

播放例子

# aplay -vMF 725  xxx.wav

-M, --mmap
-v, --verbose  (顯示詳細資訊)
-F, --period-time=# (725同等period_size 32)

# aplay test.wav device=hw:0,0  (如果指定hw:0,0這樣就會有錯誤了)

Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1233: Sample format non available
Available formats:
- S32_LE
- FLOAT_LE

顯示格式錯誤, 但就算格式指定S32_LE 一樣不行!
[/B]


指定格式是沒有作用的.
要用ecasound先把原來的wav檔轉成S32_LE格式才行.

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2013-5-7 21:20:30 | 顯示全部樓層
原發表者是 solo16
[B]Hi bchsieh,

I'm trying to help finding more documentation / sample coding and pass to Mocp developer,
however it doesn't seems to have much information on mmap_complex, so just wondering could you please kindly direct me to the right places so I can try to help to consolidate the information and pass to mocp developer?

Thx! [/B]


小弟也在蒐集資料中.
目前資料很零碎, 打算先從mpd著手, 因為看起來要改mpd容易得多.
等到mpd成功了, 改moc應該就比較順手了.

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2013-5-7 22:11:08 | 顯示全部樓層
aplay 可以用mmap參數, 為什麼MPD就不行 ! [xx(]

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-7 22:37:43 | 顯示全部樓層
i wonder the same thing if aplay can why not others?

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-7 23:17:14 | 顯示全部樓層
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?

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2013-5-7 23:25:18 | 顯示全部樓層
second finding, it seems like the min buffer size is 128 and period size is 64 for RME PCIE AES32. set lower than those value but aplay ignore it.
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|MyAV視聽商情網 test

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

Powered by MyAV!

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