![投影機聲音命令的問題](https://rvso.com/image/370303/%E6%8A%95%E5%BD%B1%E6%A9%9F%E8%81%B2%E9%9F%B3%E5%91%BD%E4%BB%A4%E7%9A%84%E5%95%8F%E9%A1%8C.png)
\documentclass[pdflatex]{beamer}
\usepackage{multimedia}
\begin{document}
\begin{frame}
\frametitle{Music}
\sound[channels=2,bitspersample=16,samplingrate=44100,encoding=Signed,autostart,inlinesound]{}{Laute.aif}
\end{frame}
\end{document}
產生 11 個錯誤訊息,首先是非常有啟發性的:
! Undefined control sequence
\mm@pageadditionalaction ...e \beamer@pdfpageattr
/AA{}>>\END \ifx \mm@pdfp
l.10 \end{frame}
Laute.aif 可以使用 foobar 和 vlc,因此可能是有效的檔案。這些玩家也告訴我選項中使用的檔案的屬性。我從 beameruserguide 第 14.2 節複製並貼上了該命令。將 .aif 轉換為 .au 檔案並不能解決問題。我該如何讓它發揮作用?
刪除自動啟動選項或用舊版本替換多媒體.sty 可以正確編譯,但即使在後一種情況下也不會發生自動啟動,並且音樂包含大量噪音和失真。刪除 inlinesound 選項可以修正後一個問題。我根本無法打開 .mp3 檔案。
答案1
添加
\makeatletter
\let\beamer@pdfpageattr\pdfpageattr
\makeatother
應該在下一個版本之前完成這項工作(假設是 pdfTeX)。