sine_player.c (69fa7fc67891b0f5b30573fae2a3219546cec17b) | sine_player.c (d365bb511ad50c3e161b326cac60f8bade7ad566) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 63 unchanged lines hidden (view full) --- 72} 73 74int btstack_main(int argc, const char * argv[]); 75int btstack_main(int argc, const char * argv[]){ 76 (void)argc; 77 (void)argv; 78 79 // setup audio playback | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 63 unchanged lines hidden (view full) --- 72} 73 74int btstack_main(int argc, const char * argv[]); 75int btstack_main(int argc, const char * argv[]){ 76 (void)argc; 77 (void)argv; 78 79 // setup audio playback |
80 const btstack_audio_t * audio = btstack_audio_get_instance(); | 80 const btstack_audio_sink_t * audio = btstack_audio_sink_get_instance(); |
81 if (!audio){ | 81 if (!audio){ |
82 printf("BTstack Audio not setup\n"); | 82 printf("BTstack Audio Sink not setup\n"); |
83 return 10; 84 } | 83 return 10; 84 } |
85 audio->init(2, 44100, &audio_playback, NULL); | 85 audio->init(2, 44100, &audio_playback); |
86 audio->start_stream(); 87 88 return 0; 89} | 86 audio->start_stream(); 87 88 return 0; 89} |