Skip to content

Commit ae3b28a

Browse files
committed
Fix function calls for direction setters & getters
1 parent 5a6ef75 commit ae3b28a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/SFML.Audio/Music.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ public Vector3f Position
286286
////////////////////////////////////////////////////////////
287287
public Vector3f Direction
288288
{
289-
get => sfMusic_getPosition(CPointer);
290-
set => sfMusic_setPosition(CPointer, value);
289+
get => sfMusic_getDirection(CPointer);
290+
set => sfMusic_setDirection(CPointer, value);
291291
}
292292

293293
////////////////////////////////////////////////////////////

src/SFML.Audio/Sound.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ public Vector3f Position
223223
////////////////////////////////////////////////////////////
224224
public Vector3f Direction
225225
{
226-
get => sfSound_getPosition(CPointer);
227-
set => sfSound_setPosition(CPointer, value);
226+
get => sfSound_getDirection(CPointer);
227+
set => sfSound_setDirection(CPointer, value);
228228
}
229229

230230
////////////////////////////////////////////////////////////

src/SFML.Audio/SoundStream.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ public Vector3f Position
213213
////////////////////////////////////////////////////////////
214214
public Vector3f Direction
215215
{
216-
get => sfSoundStream_getPosition(CPointer);
217-
set => sfSoundStream_setPosition(CPointer, value);
216+
get => sfSoundStream_getDirection(CPointer);
217+
set => sfSoundStream_setDirection(CPointer, value);
218218
}
219219

220220
////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)