Noble Ape
The Central Directories of the Noble Ape Simulation.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
audio.c File Reference

Handles audio output for the Noble Toolkit. More...

#include "noble.h"
#include <math.h>
#include <stdio.h>
Include dependency graph for audio.c:

Go to the source code of this file.

Functions

void audio_fft (n_byte inverse, n_uint power_sample)
void audio_clear_buffers (n_uint length)
void audio_clear_output (n_audio *audio, n_uint length)
void audio_equal_output (n_audio *audio, n_uint length)
void audio_multiply_output (n_audio *audio, n_uint length)
void audio_set_frequency (n_uint entry, n_uint value)
void audio_aiff_body (void *fptr, n_audio *samples, n_uint number_samples)
void audio_aiff_header (void *fptr, n_uint total_samples)

Detailed Description

Handles audio output for the Noble Toolkit.

Definition in file audio.c.


Function Documentation

void audio_aiff_body ( void *  fptr,
n_audio samples,
n_uint  number_samples 
)

Definition at line 274 of file audio.c.

Here is the caller graph for this function:

void audio_aiff_header ( void *  fptr,
n_uint  total_samples 
)

Definition at line 323 of file audio.c.

Here is the caller graph for this function:

void audio_clear_buffers ( n_uint  length)

Clears all the buffers associated with the FFT.

Parameters:
lengththe length of the buffer to be cleared.

Definition at line 196 of file audio.c.

Here is the caller graph for this function:

void audio_clear_output ( n_audio audio,
n_uint  length 
)

Clears an audio output buffer

Parameters:
audiothe audio buffer to be cleared.
lengththe length of the buffer to be cleared.

Definition at line 214 of file audio.c.

Here is the caller graph for this function:

void audio_equal_output ( n_audio audio,
n_uint  length 
)

Sets an audio ouput buffer to the FFT time-domain buffer.

Parameters:
audiothe audio buffer to be set.
lengththe length of the buffer to be set.

Definition at line 229 of file audio.c.

Here is the caller graph for this function:

void audio_fft ( n_byte  inverse,
n_uint  power_sample 
)

Perform a fast fourier transform.

Parameters:
inverseif this is an inverse FFT.
power_samplethe number of bits of the FFT cell size.

Definition at line 74 of file audio.c.

Here is the caller graph for this function:

void audio_multiply_output ( n_audio audio,
n_uint  length 
)

Multiplies an audio ouput buffer to the FFT time-domain buffer.

Parameters:
audiothe audio buffer to be multiplied.
lengththe length of the buffer to be multiplied.

Definition at line 244 of file audio.c.

Here is the caller graph for this function:

void audio_set_frequency ( n_uint  entry,
n_uint  value 
)

Sets frequency values in the frequency FFT buffer.

Parameters:
entrythe frequency entry point.
valuethe specific value to set in the frequency entry.

Definition at line 259 of file audio.c.

Here is the caller graph for this function: