Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
audioplayer uses deprecated carbon framework in OS X
조회 수: 1 (최근 30일)
이전 댓글 표시
I have been developing a deployed application that uses audioplayer to indicate events to the user. Very simple code:
[y,fs]=audioread(tickFile);
tickSound = audioplayer(y,fs);
play(tickSound);
I develop on a MacBook Pro running El Capitan using 2016a, and I have two problems:
1) When I run the app from the command line, every time a sound is played, I see this line:
WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
I don't see this message in the development environment unless I look in the system log.
2) If I am working at home and redirect my audio output to my sound system, then undock the MBP, MATLAB doesn't figure out that I don't have that audio output, and play() dies with an internal error. The only way to fix it is to quit MATLAB and restart.
Other than reencoding my .mp3 tick as a .wav and using java audio, I don't see a workaround.
댓글 수: 0
답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!