# Help with BufferPlayerNode in CLion

**URL:** <https://discourse.libcinder.org/t/help-with-bufferplayernode-in-clion/1816>\
**Category:** Uncategorized\
**Created:** [April 30, 2021, 8:59pm UTC](https://discourse.libcinder.org/t/help-with-bufferplayernode-in-clion/1816 "2021-04-30T20:59:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![penguinlvr02](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@penguinlvr02](https://discourse.libcinder.org/u/penguinlvr02)\
**Post date:** [April 30, 2021, 8:59pm UTC](https://discourse.libcinder.org/t/help-with-bufferplayernode-in-clion/1816/1 "2021-04-30T20:59:25Z")

</div>

Cinder newbie here. Trying to figure out why my BufferPlayerNode isn’t working properly. Everything compiles and the GainNodeRef has the correct volume (1.0f) but I cannot hear any sounds playing from my computer ☹

Here’s the code snippet:

```auto
    auto ctx = audio::Context::master();
    audio::SourceFileRef source_file = audio::load(loadAsset("tanpura_C.mp3"), ctx->getSampleRate());

    //create BufferPlayerNode from file
    buffer_player = ctx->makeNode(new audio::BufferPlayerNode());
    buffer_player->loadBuffer(source_file);

    //create GainNode for volume control, set to max volume
    audio::GainNodeRef gain = ctx->makeNode(new audio::GainNode(1.0f));

    // Connect player components to audio graph
    buffer_player >> gain >> ctx->getOutput();

    std::cout << gain->getValue();
    ctx->enable();
    buffer_player->start();

```

Could anyone provide me with pointers about where I could be going wrong here? Thank you so much!!

I’m using Clion 2021.1.1 on MacOS Catalina if that helps.

---

<div class="post-metadata">

**Author:** ![lithium](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/lithium/32/38_2.png) [@lithium](https://discourse.libcinder.org/u/lithium)\
**Post date:** [May 1, 2021, 3:24am UTC](https://discourse.libcinder.org/t/help-with-bufferplayernode-in-clion/1816/2 "2021-05-01T03:24:16Z")

</div>

Just tested your code and it worked fine for me, so I guess that points to either your specific sound setup or your mp3 file itself. Do you have any exotic outputs on your machine or is it all standard?

---

<div class="post-metadata">

**Author:** ![penguinlvr02](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@penguinlvr02](https://discourse.libcinder.org/u/penguinlvr02)\
**Post date:** [May 1, 2021, 11:10pm UTC](https://discourse.libcinder.org/t/help-with-bufferplayernode-in-clion/1816/3 "2021-05-01T23:10:35Z")

</div>

Okay so turns out I had the code in the wrong target portion, I was able to get it to work. Thank you so much!
