0
0

Hi! I am new to using FMOD. I have a question regarding record drivers. Currently, I am working on a Pitch Detection program in C and using the tutorial Pitch Detection class. How do I change the input from microphone into playback?

Below I think is the part where in the record driver is selected:
[code:58ag2r06]
result = FMOD_System_GetNumDrivers(system, &numdrivers);
ERRCHECK(result);

printf("---------------------------------------------------------\n");    
printf("Choose a PLAYBACK driver\n");
printf("---------------------------------------------------------\n");    
for (count=0; count < numdrivers; count++)
{
    char name[256];

    result = FMOD_System_GetDriverInfo(system, count, name, 256, 0);
    ERRCHECK(result);

    printf("%d : %s\n", count + 1, name);
}
printf("---------------------------------------------------------\n");
printf("Press a corresponding number or ESC to quit\n");

do
{
    key = _getch();
    if (key == 27)
    {
        return 0;
    }
    driver = key - '1';
} while (driver < 0 || driver >= numdrivers);

result = FMOD_System_SetDriver(system, driver);
ERRCHECK(result);

[/code:58ag2r06]

Currently, only microphone is displayed as the driver.

Thanks!

  • You must to post comments
0
0

FMOD will display only the input devices the driver provides, some Creative sound cards provide a ‘what you hear’ device that will appear in the list, however this is driver dependent.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.