/* TODO:
- implement hardware volume controls
- handle audio device stream format changes (will require changes to the core)
+ - add an "off" mode that removes all sinks and sources
*/
#ifdef HAVE_CONFIG_H
#include <pulsecore/strbuf.h>
#include <pulsecore/thread.h>
#include <pulsecore/thread-mq.h>
+#include <pulsecore/i18n.h>
#include <CoreAudio/CoreAudio.h>
#include <CoreAudio/CoreAudioTypes.h>
PA_LLIST_FIELDS(coreaudio_source);
};
+static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
+ return 0;
+}
+
static OSStatus io_render_proc (AudioDeviceID device,
const AudioTimeStamp *now,
const AudioBufferList *inputData,
pa_modargs *ma = NULL;
char tmp[64];
pa_card_new_data card_new_data;
+ pa_card_profile *p;
coreaudio_sink *ca_sink;
coreaudio_source *ca_source;
AudioObjectPropertyAddress property_address;
if (!err)
u->vendor_name = pa_xstrdup(tmp);
+ /* add on profile */
+ p = pa_card_profile_new("on", _("On"), 0);
+ pa_hashmap_put(card_new_data.profiles, p->name, p);
+
/* create the card object */
u->card = pa_card_new(m->core, &card_new_data);
if (!u->card) {
pa_card_new_data_done(&card_new_data);
u->card->userdata = u;
+ u->card->set_profile = card_set_profile;
u->rtpoll = pa_rtpoll_new();
pa_thread_mq_init(&u->thread_mq, m->core->mainloop, u->rtpoll);