Sounds with OpenAL | Coding a 2D Game Engine in Java #46

Sdílet
Vložit
  • čas přidán 20. 05. 2024
  • Join the Discord: / discord
    In this episode I go over the minimal requirements to set up OpenAL and start playing sounds from it. I do not go into depth about how to use different audio techniques like moving audio sources, or placing audio sources in a world, I simply go over the most basic form of setting up an audio source and being able to play it anywhere in the game world. After we have it set up, I go over how to set up an ImGui screen to get all the sound sources displayed and to play them on click.
    Code and Assets: github.com/codingminecraft/Ma...
    0:00 Intro
    0:44 Visual Explanation of Sound
    6:57 Fixing an ImGui Bug
    7:35 Setting up the Audio Device/Context
    11:33 Creating the Sound Asset
    21:12 Creating an Asset Pool for Sounds
    23:31 Creating ImGui Screen for Sounds
    ---------------------------------------------------------------------
    Website: ambrosiogabe.github.io/
    Github: github.com/ambrosiogabe
    Here are some books I recommend if you want to learn about game engine development more thoroughly. I do not profit off any of these sales, these are just some books that have helped me out :)
    My Recommended Game Engine Books:
    Game Engine Architecture: www.gameenginebook.com/
    Game Physics Cookbook (Read this before the next physics book): www.amazon.com/Game-Physics-C...
    Game Physics (Ian Millington): www.amazon.com/Game-Physics-E...
    Game Programming Patterns (Free): gameprogrammingpatterns.com/
    My Recommended Beginning Game Programming Books:
    JavaScript Game Design: www.apress.com/gp/book/978143...
    My Recommended Java Books:
    Data Structures/Algorithms: www.amazon.com/Data-Structure...
    LWJGL (Free, but I haven't read this thoroughly): lwjglgamedev.gitbooks.io/3d-g...

Komentáře • 21

  • @buggybaka
    @buggybaka Před 3 lety +6

    I was given the task of adding audio to the community project and I found this 👍❤️

  • @MetinCloup
    @MetinCloup Před 3 lety +7

    thanks for contuining this series i appreciate you

  • @downthecrop
    @downthecrop Před 2 lety

    thanks brotha I was completely lost but now I am found.

  • @luandkg
    @luandkg Před 3 lety

    I'm waiting for this momment ! Audio 👉🏻👈🏻

  • @ilanbitan8764
    @ilanbitan8764 Před 3 lety

    amazing!! keep up with your great job! :)
    learning alot from u

    • @GamesWithGabe
      @GamesWithGabe  Před 3 lety +1

      Thanks Ilan! It's nice to see some of my original subscribers are still here :)

    • @ilanbitan8764
      @ilanbitan8764 Před 3 lety

      @@GamesWithGabe of corse ur doing an amazing job.. im learning computer science and my knowledge is getting better thanks to u

  • @buggybaka
    @buggybaka Před 3 lety

    To prove that you are the only active java youtuber just type java on youtube
    Good job man!👍

    • @GamesWithGabe
      @GamesWithGabe  Před 3 lety +1

      Wow I didn't even notice that nobody was posting Java videos anymore haha. It's still a good language to know, Amazon still primarily uses it, but I'm not sure about other big tech companies :)

  • @jojojaja255
    @jojojaja255 Před 3 lety

    after finally catching up on this series I wonder... are ypu planning on doing a c++ lesson soon?
    I have basically 0% knowledge when it comes to c++, Vulkan API and 3d game engines. To be more specific, I wand to make a voxel game that anyone can play because it has low requirements (C++, vulkan -> pretty fast).
    I dont wanna use commercial game engines that limit you and so on. Just curious if you are interested in a project like that, since no on on youtube does it that specific. Good Video as always brother

    • @GamesWithGabe
      @GamesWithGabe  Před 3 lety +1

      Hey Jojo, thanks for the comment! And I'm already way ahead of you haha czcams.com/video/D86f9fiFwgk/video.html . I want to finish this series after I finish the game engine series, and then I'll be starting some C++ specific tutorials. It probably won't be giant series like this one, but more general purpose stuff like frustum-culling and scene hierarchy panel and font rendering. Just other general-purpose game engine stuff. I may do some stuff with voxels to at some point because it's fun and I've messed around with it in the past :)

    • @jojojaja255
      @jojojaja255 Před 3 lety

      @@GamesWithGabe Awesome. Cant wait, I`ll stick around!

  • @sadmansakibkhan8667
    @sadmansakibkhan8667 Před 3 lety

    hey are you going to add a scene system like unity

    • @GamesWithGabe
      @GamesWithGabe  Před 3 lety +1

      Hey sadman, I probably won't be implementing a scene system like Unity. This engine is not something that I will be putting much more into because it's diverged a lot from how I would build an engine now. I'll probably do subject specific tutorials in the future though, like how you could implement a scene system like unity, just not with this engine :)

  • @chickeningay
    @chickeningay Před 3 lety +1

    Hey dude you dont plan on deleting these do you?
    I am currently busy with some exams but i really want to binge watch your channel if you plan on deleting please tell me so i can save it

    • @GamesWithGabe
      @GamesWithGabe  Před 3 lety +1

      Hey @Chicken! Don't worry about it I plan on leaving these videos up haha. I don't believe in deleting old videos even if I would do things differently now because I think it's good for other people to see the changes that I make :)

    • @chickeningay
      @chickeningay Před 3 lety

      @@GamesWithGabe cool! Thanks for answering

  • @ABHISHEKSINGH-nv1se
    @ABHISHEKSINGH-nv1se Před 3 lety

    Are u going to close this lwjgl series in favor of c++. 😭😭😭

  • @anlcangulkaya6244
    @anlcangulkaya6244 Před 3 lety +2

    hi