[festival-talk] Re: Mac OS X Leopard: deprecated function in macosxaudio.cc

Torbjørn Svendsen torbjorn at iet.ntnu.no
Wed Jan 9 16:40:30 CET 2008


If you add

#include <AudioUnit/AUNTComponent.h>

after the include block on lines 45-48 in audio/macosxaudio.cc the  
problem should be solved.

By the way, remember to change the byte order if you have an intel  
mac, i.e. on line 131:
     waveformat.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger
		 | kLinearPCMFormatFlagIsPacked;
	// For Intel	| kLinearPCMFormatFlagIsPacked;
     // For PowerPC    | kLinearPCMFormatFlagIsPacked |  
kLinearPCMFormatFlagIsBigEndian;

Torbjorn

Den 20. des.. 2007 kl. 18.46 skrev Esther Klabbers:

> Thanks, it's working now. I changed siteinit.scm to use afplay and  
> commented out sections of macosxaudio.cc. I also had to comment out  
> some lines in include/EST_math.h dealing with isnan to get it  
> compiled. I thought that patch was applied already to the latest  
> speech_tools code, but apparently it was not.
>
> Esther
>
> On Dec 19, 2007, at 11:55 AM, Alan W Black wrote:
>
>> message from Alan W Black <awb at cs.cmu.edu> to festival-talk
>> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
>> = =
>> Esther Klabbers wrote:
>>> I was hoping somebody would already have a patch for this problem.  
>>> My knowledge of c++ is not extensive enough to be able to fix this.
>>
>> I would comment out everything that gives an error, then use an  
>> external program to play audio.  We don't seem to have OSX  
>> expertise to support this (or they really are changing this faster  
>> than we can support).
>>
>> Alan
>>
>>
>>
>>> Esther
>>> On Dec 17, 2007, at 2:33 PM, Nickolay V. Shmyrev wrote:
>>>> В Пнд, 17/12/2007 в 11:54 +0100, Casoto Paolo пишет:
>>>>> Hi,
>>>>>
>>>>> I've got the same problem compiling Speech Tools under Leopard.
>>>>>
>>>>> macosxaudio.cc:95: error: ‘AudioUnitInputCallback’ was not  
>>>>> declared in
>>>>> this scope
>>>>> macosxaudio.cc:95: error: expected `;' before ‘input’
>>>>> macosxaudio.cc:104: warning: ‘OpenDefaultAudioOutput’ is  
>>>>> deprecated
>>>>> (declared at /System/Library/Frameworks/AudioToolbox.framework/ 
>>>>> Headers/
>>>>> DefaultAudioOutput.h:26)
>>>>> macosxaudio.cc:104: warning: ‘OpenDefaultAudioOutput’ is  
>>>>> deprecated
>>>>> (declared at /System/Library/Frameworks/AudioToolbox.framework/ 
>>>>> Headers/
>>>>> DefaultAudioOutput.h:26)
>>>>> macosxaudio.cc:117: error:  
>>>>> ‘kAudioUnitProperty_SetInputCallback’ was
>>>>> not declared in this scope
>>>>> macosxaudio.cc:118: error: ‘input’ was not declared in this  
>>>>> scope
>>>>> make[1]: *** [macosxaudio.o] Error 1
>>>>> make: *** [audio] Error 2
>>>>
>>>> Looks so. Unfortunately due to the lack of Mac here I wonder if  
>>>> we can
>>>> do something. Someone should just propose a patch and fix this  
>>>> issue.
>>>>
>>> Esther Klabbers
>>> Center for Spoken Language Understanding
>>> OGI School of Science & Engineering, OHSU
>>> 20000 NW Walker Rd, Beaverton, OR 97006
>>> phone: 503 748 3005 fax: 503 748 1306
>>> www: http://www.bme.ogi.edu/~klabbers
>>
>> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
>> = =
>> =    University of Edinburgh's Festival Speech Synthesis  
>> System       =
>> = http://festvox.org/festival      Sent Via festival- 
>> talk at festvox.org =
>> =                           To unsubscribe mail  
>> majordomo at festvox.org =
>> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
>> = =
>
> Esther Klabbers
> Center for Spoken Language Understanding
> OGI School of Science & Engineering, OHSU
> 20000 NW Walker Rd, Beaverton, OR 97006
> phone: 503 748 3005 fax: 503 748 1306
> www: http://www.bme.ogi.edu/~klabbers
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.berlios.de/pipermail/festlang-talk/attachments/20080109/98edf97c/attachment.html>


More information about the Festlang-talk mailing list