mirror of
https://github.com/lloeki/coreaudio_example.git
synced 2025-12-06 03:04:38 +01:00
make it work (1s, 440Hz tone)
This commit is contained in:
parent
55975b0e5f
commit
24c48a1782
3 changed files with 61 additions and 4 deletions
|
|
@ -53,7 +53,7 @@ static struct CoreAudioFormatDescriptionMap format_map[] = {
|
|||
{FMT_S16_BE, 16, sizeof (int16_t), kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsBigEndian},
|
||||
{FMT_S32_LE, 32, sizeof (int32_t), kAudioFormatFlagIsSignedInteger},
|
||||
{FMT_S32_BE, 32, sizeof (int32_t), kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsBigEndian},
|
||||
{FMT_FLOAT, 32, sizeof (float), kAudioFormatFlagIsFloat},
|
||||
{FMT_FLOAT, 32, sizeof (float), kAudioFormatFlagsNativeFloatPacked | kAudioFormatFlagIsNonInterleaved},
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
@ -118,7 +118,7 @@ This gives you an output unit you can send data to using a callback. Now we
|
|||
should actually set up the unit for playback...
|
||||
*/
|
||||
|
||||
bool open_audio (int format, int rate, int chan, AURenderCallbackStruct * callback)
|
||||
bool open_audio (enum format_type format, int rate, int chan, AURenderCallbackStruct * callback)
|
||||
{
|
||||
struct CoreAudioFormatDescriptionMap * m = nullptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue