mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
Fix OSX error message in sndfile-play.c.
This commit is contained in:
parent
4cdfbfd4d2
commit
148d6e63d1
12
ChangeLog
12
ChangeLog
@ -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
|
||||
|
@ -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 ;
|
||||
} ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user