Fix OSX error message in sndfile-play.c.

This commit is contained in:
Erik de Castro Lopo 2004-09-22 08:10:03 +00:00
parent 4cdfbfd4d2
commit 148d6e63d1
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,15 @@
2004-09-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* examples/sndfile-play.c
Appy patch from Conrad Parker to make Mac OSX error messages more consitent
and informative.
* doc/api.html
Fix a HTML HREF which was wrong.
* doc/win32.html
Add information about when nmake fails.
2004-09-05 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* examples/sndfile-play.c

View File

@ -514,7 +514,7 @@ macosx_play (int argc, char *argv [])
count = sizeof (AudioDeviceID) ;
if ((err = AudioHardwareGetProperty (kAudioHardwarePropertyDefaultOutputDevice,
&count, (void *) &(audio_data.device))) != noErr)
{ printf ("AudioHardwareGetProperty failed.\n") ;
{ printf ("AudioHardwareGetProperty (kAudioDevicePropertyDefaultOutputDevice) failed.\n") ;
return ;
} ;
@ -522,7 +522,7 @@ macosx_play (int argc, char *argv [])
count = sizeof (UInt32) ;
if ((err = AudioDeviceGetProperty (audio_data.device, 0, false, kAudioDevicePropertyBufferSize,
&count, &buffer_size)) != noErr)
{ printf ("AudioDeviceGetProperty (AudioDeviceGetProperty) failed.\n") ;
{ printf ("AudioDeviceGetProperty (kAudioDevicePropertyBufferSize) failed.\n") ;
return ;
} ;