1678c2017Sbeveloper #include <MediaNode.h> 2678c2017Sbeveloper #include "MixerInput.h" 3678c2017Sbeveloper #include "MixerCore.h" 4*e6c7c99fSbeveloper #include "MixerUtils.h" 5*e6c7c99fSbeveloper #include "debug.h" 6678c2017Sbeveloper 7*e6c7c99fSbeveloper MixerInput::MixerInput(MixerCore *core, const media_input &input) 8*e6c7c99fSbeveloper : fCore(core), 9*e6c7c99fSbeveloper fInput(input) 10678c2017Sbeveloper { 11*e6c7c99fSbeveloper fix_multiaudio_format(&fInput.format.u.raw_audio); 12*e6c7c99fSbeveloper PRINT_INPUT("MixerInput::MixerInput", fInput); 13*e6c7c99fSbeveloper PRINT_CHANNEL_MASK(fInput.format); 14678c2017Sbeveloper } 15678c2017Sbeveloper 16678c2017Sbeveloper MixerInput::~MixerInput() 17678c2017Sbeveloper { 18678c2017Sbeveloper } 19678c2017Sbeveloper 20678c2017Sbeveloper void 21678c2017Sbeveloper MixerInput::BufferReceived(BBuffer *buffer) 22678c2017Sbeveloper { 23678c2017Sbeveloper } 247ee2c804Sbeveloper 257ee2c804Sbeveloper media_input & 267ee2c804Sbeveloper MixerInput::MediaInput() 277ee2c804Sbeveloper { 287ee2c804Sbeveloper return fInput; 297ee2c804Sbeveloper } 30*e6c7c99fSbeveloper 31*e6c7c99fSbeveloper int32 32*e6c7c99fSbeveloper MixerInput::ID() 33*e6c7c99fSbeveloper { 34*e6c7c99fSbeveloper return fInput.destination.id; 35*e6c7c99fSbeveloper } 36*e6c7c99fSbeveloper 37*e6c7c99fSbeveloper 38