@@ -153,7 +153,7 @@ lib CSFML
153
153
#
154
154
# * `music`: Music object
155
155
# * `loop`: True to play in loop, False to play once
156
- fun music_set_loop = sfMusic_setLoop (music : Music , loop : Int32 )
156
+ fun music_set_loop = sfMusic_setLoop (music : Music , loop : CSFML :: Bool )
157
157
158
158
# Tell whether or not a music is in loop mode
159
159
#
@@ -162,7 +162,7 @@ lib CSFML
162
162
# * `music`: Music object
163
163
#
164
164
# *Returns*: True if the music is looping, False otherwise
165
- fun music_get_loop = sfMusic_getLoop (music : Music ): Int32
165
+ fun music_get_loop = sfMusic_getLoop (music : Music ): CSFML :: Bool
166
166
167
167
# Get the total duration of a music
168
168
#
@@ -297,7 +297,7 @@ lib CSFML
297
297
#
298
298
# * `music`: Music object
299
299
# * `relative`: True to set the position relative, False to set it absolute
300
- fun music_set_relative_to_listener = sfMusic_setRelativeToListener (music : Music , relative : Int32 )
300
+ fun music_set_relative_to_listener = sfMusic_setRelativeToListener (music : Music , relative : CSFML :: Bool )
301
301
302
302
# Set the minimum distance of a music
303
303
#
@@ -377,7 +377,7 @@ lib CSFML
377
377
# * `music`: Music object
378
378
#
379
379
# *Returns*: True if the position is relative, False if it's absolute
380
- fun music_is_relative_to_listener = sfMusic_isRelativeToListener (music : Music ): Int32
380
+ fun music_is_relative_to_listener = sfMusic_isRelativeToListener (music : Music ): CSFML :: Bool
381
381
382
382
# Get the minimum distance of a music
383
383
#
@@ -484,7 +484,7 @@ lib CSFML
484
484
#
485
485
# * `sound`: Sound object
486
486
# * `loop`: True to play in loop, False to play once
487
- fun sound_set_loop = sfSound_setLoop (sound : Sound , loop : Int32 )
487
+ fun sound_set_loop = sfSound_setLoop (sound : Sound , loop : CSFML :: Bool )
488
488
489
489
# Tell whether or not a sound is in loop mode
490
490
#
@@ -493,7 +493,7 @@ lib CSFML
493
493
# * `sound`: Sound object
494
494
#
495
495
# *Returns*: True if the sound is looping, False otherwise
496
- fun sound_get_loop = sfSound_getLoop (sound : Sound ): Int32
496
+ fun sound_get_loop = sfSound_getLoop (sound : Sound ): CSFML :: Bool
497
497
498
498
# Get the current status of a sound (stopped, paused, playing)
499
499
#
@@ -553,7 +553,7 @@ lib CSFML
553
553
#
554
554
# * `sound`: Sound object
555
555
# * `relative`: True to set the position relative, False to set it absolute
556
- fun sound_set_relative_to_listener = sfSound_setRelativeToListener (sound : Sound , relative : Int32 )
556
+ fun sound_set_relative_to_listener = sfSound_setRelativeToListener (sound : Sound , relative : CSFML :: Bool )
557
557
558
558
# Set the minimum distance of a sound
559
559
#
@@ -633,7 +633,7 @@ lib CSFML
633
633
# * `sound`: Sound object
634
634
#
635
635
# *Returns*: True if the position is relative, False if it's absolute
636
- fun sound_is_relative_to_listener = sfSound_isRelativeToListener (sound : Sound ): Int32
636
+ fun sound_is_relative_to_listener = sfSound_isRelativeToListener (sound : Sound ): CSFML :: Bool
637
637
638
638
# Get the minimum distance of a sound
639
639
#
@@ -745,7 +745,7 @@ lib CSFML
745
745
# * `filename`: Path of the sound file to write
746
746
#
747
747
# *Returns*: True if saving succeeded, False if it failed
748
- fun sound_buffer_save_to_file = sfSoundBuffer_saveToFile (sound_buffer : SoundBuffer , filename : UInt8 * ): Int32
748
+ fun sound_buffer_save_to_file = sfSoundBuffer_saveToFile (sound_buffer : SoundBuffer , filename : UInt8 * ): CSFML :: Bool
749
749
750
750
# Get the array of audio samples stored in a sound buffer
751
751
#
@@ -867,8 +867,8 @@ lib CSFML
867
867
# *Returns*: Read-only access to the sound buffer
868
868
fun sound_buffer_recorder_get_buffer = sfSoundBufferRecorder_getBuffer (sound_buffer_recorder : SoundBufferRecorder ): SoundBuffer
869
869
870
- alias SoundRecorderStartCallback = (Void * ) - > Int32
871
- alias SoundRecorderProcessCallback = (Int16 * , SizeT , Void * ) - > Int32
870
+ alias SoundRecorderStartCallback = (Void * ) - > CSFML :: Bool
871
+ alias SoundRecorderProcessCallback = (Int16 * , SizeT , Void * ) - > CSFML :: Bool
872
872
alias SoundRecorderStopCallback = (Void * ) - > Void
873
873
# Construct a new sound recorder from callback functions
874
874
#
@@ -904,7 +904,7 @@ lib CSFML
904
904
# * `sample_rate`: Desired capture rate, in number of samples per second
905
905
#
906
906
# *Returns*: True, if start of capture was successful
907
- fun sound_recorder_start = sfSoundRecorder_start (sound_recorder : SoundRecorder , sample_rate : Int32 ): Int32
907
+ fun sound_recorder_start = sfSoundRecorder_start (sound_recorder : SoundRecorder , sample_rate : Int32 ): CSFML :: Bool
908
908
909
909
# Stop the capture of a sound recorder
910
910
#
@@ -933,7 +933,7 @@ lib CSFML
933
933
# any attempt to use SoundRecorder will fail.
934
934
#
935
935
# *Returns*: True if audio capture is supported, False otherwise
936
- fun sound_recorder_is_available = sfSoundRecorder_isAvailable (): Int32
936
+ fun sound_recorder_is_available = sfSoundRecorder_isAvailable (): CSFML :: Bool
937
937
938
938
# Set the processing interval
939
939
#
@@ -987,7 +987,7 @@ lib CSFML
987
987
# * `The`: name of the audio capture device
988
988
#
989
989
# *Returns*: True, if it was able to set the requested device
990
- fun sound_recorder_set_device = sfSoundRecorder_setDevice (sound_recorder : SoundRecorder , name : UInt8 * ): Int32
990
+ fun sound_recorder_set_device = sfSoundRecorder_setDevice (sound_recorder : SoundRecorder , name : UInt8 * ): CSFML :: Bool
991
991
992
992
# Get the name of the current audio capture device
993
993
#
@@ -1004,7 +1004,7 @@ lib CSFML
1004
1004
sample_count: Int32
1005
1005
end
1006
1006
1007
- alias SoundStreamGetDataCallback = (SoundStreamChunk * , Void * ) - > Int32
1007
+ alias SoundStreamGetDataCallback = (SoundStreamChunk * , Void * ) - > CSFML :: Bool
1008
1008
alias SoundStreamSeekCallback = (Time , Void * ) - > Void
1009
1009
# Create a new sound stream
1010
1010
#
@@ -1141,7 +1141,7 @@ lib CSFML
1141
1141
#
1142
1142
# * `sound_stream`: Sound stream object
1143
1143
# * `relative`: True to set the position relative, False to set it absolute
1144
- fun sound_stream_set_relative_to_listener = sfSoundStream_setRelativeToListener (sound_stream : SoundStream , relative : Int32 )
1144
+ fun sound_stream_set_relative_to_listener = sfSoundStream_setRelativeToListener (sound_stream : SoundStream , relative : CSFML :: Bool )
1145
1145
1146
1146
# Set the minimum distance of a sound stream
1147
1147
#
@@ -1197,7 +1197,7 @@ lib CSFML
1197
1197
#
1198
1198
# * `sound_stream`: Sound stream object
1199
1199
# * `loop`: True to play in loop, False to play once
1200
- fun sound_stream_set_loop = sfSoundStream_setLoop (sound_stream : SoundStream , loop : Int32 )
1200
+ fun sound_stream_set_loop = sfSoundStream_setLoop (sound_stream : SoundStream , loop : CSFML :: Bool )
1201
1201
1202
1202
# Get the pitch of a sound stream
1203
1203
#
@@ -1234,7 +1234,7 @@ lib CSFML
1234
1234
# * `sound_stream`: Sound stream object
1235
1235
#
1236
1236
# *Returns*: True if the position is relative, False if it's absolute
1237
- fun sound_stream_is_relative_to_listener = sfSoundStream_isRelativeToListener (sound_stream : SoundStream ): Int32
1237
+ fun sound_stream_is_relative_to_listener = sfSoundStream_isRelativeToListener (sound_stream : SoundStream ): CSFML :: Bool
1238
1238
1239
1239
# Get the minimum distance of a sound stream
1240
1240
#
@@ -1261,7 +1261,7 @@ lib CSFML
1261
1261
# * `sound_stream`: Sound stream object
1262
1262
#
1263
1263
# *Returns*: True if the music is looping, False otherwise
1264
- fun sound_stream_get_loop = sfSoundStream_getLoop (sound_stream : SoundStream ): Int32
1264
+ fun sound_stream_get_loop = sfSoundStream_getLoop (sound_stream : SoundStream ): CSFML :: Bool
1265
1265
1266
1266
# Get the current playing position of a sound stream
1267
1267
#
0 commit comments