Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6104295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:49:32+00:00 2026-05-23T13:49:32+00:00

I have an event called Numbers. In Fmod Designer the event plays different numbers

  • 0

I have an event called Numbers. In Fmod Designer the event plays different numbers depending on listenerAngle. I want to be able to hear the different sounds when I position this event in a 3D space. This is the code I have at the moment. It only plays one of the numbers in my app. Am I missing something?

FMOD_RESULT         result     = FMOD_OK;
    FMOD_VECTOR         listenerpos;
    FMOD_VECTOR         forward         = { 0.0f, 0.0f, 1.0f };
    FMOD_VECTOR         up              = { 0.0f, 1.0f, 0.0f };
    FMOD_VECTOR         vel             = { 0.0f, 0.0f, 0.0f };

    result = group->getEvent("Numbers", FMOD_EVENT_DEFAULT, &event);
        ERRCHECK(result);

    listenerpos.x = 0.436243;
    listenerpos.y = -0.43643;
    listenerpos.z = -6;

    result = eventSystem->set3DListenerAttributes(0, &listenerpos, &vel, &forward, &up);
    ERRCHECK(result);

Help is very much appreciated! Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:49:33+00:00Added an answer on May 23, 2026 at 1:49 pm

    I added some lines and got it working. I had to place out the event in the 3D world.

    FMOD_RESULT    result = FMOD_OK;
    FMOD_VECTOR    listenerpos = { 0.0f, 0.0f, 1.0f };
    FMOD_VECTOR    eventpos        = { 0.0f, 0.0f, 1.0f };
    float DISTANCEFACTOR          = 2.0f;
    
    result = group->getEvent("Numbers", FMOD_EVENT_DEFAULT, &event);
    ERRCHECK(result);
    
    listenerpos.x = 0;
    listenerpos.y = 0;
    listenerpos.z = 0;    
    
    result = eventSystem->set3DListenerAttributes(0, &listenerpos,NULL,NULL,NULL);
    ERRCHECK(result);
    
    eventpos.x = xPos; // Object's x position on iPhone I move around
    eventpos.z = yPos;
    
    
    result = event->set3DAttributes(&eventpos2,&vel);
    ERRCHECK(result);
    
    result = eventSystem->update();
    ERRCHECK(result);
    
    result = ballEvent->start();
    ERRCHECK(result);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an onclick event called in a PHP foreach loop for several items
I have a model called Event and another called Product. An event has many
I have a table called Event. A column has duration--which is...how long that event
I have this code which is called at an onChange event of an function
I have a DataGridView and handle event CellFormatting. It has a parameter called: DataGridViewCellFormattingEventArgs
In my program, I'd like to have mouseMoveEvent(QMouseEvent* event) called whenever the mouse moves
I have to store a different number of values in a column called, date_of,
I have the following function first called with a button click. function chooseRosaryIN(evt:Event) {
I have number of drop down menu's which gets called with a onClick event
I have event Button that creates text box in run time. Private Sub Button1_Click(ByVal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.