Ticket #2539: audiooutputca.h.diff

File audiooutputca.h.diff, 1.6 KB (added by awk@…, 14 years ago)

Patches to audioutputca.h

  • audiooutputca.h

     
    1313
    1414// We hide Core Audio-specific items, to avoid
    1515// pulling in Mac-specific header files.
    16 struct CoreAudioData;
     16class CoreAudio_impl;
    1717
    1818class AudioOutputCA : public AudioOutputBase
    1919{
     
    2626                  bool lset_initial_vol, bool laudio_passthru);
    2727    virtual ~AudioOutputCA();
    2828   
    29     // callback for delivering audio to output device
    30     bool RenderAudio(unsigned char *aubuf, int size,
    31                      unsigned long long timestamp);
    32 
    3329    // Volume control
    3430    virtual int GetVolumeChannel(int channel); // Returns 0-100
    3531    virtual void SetVolumeChannel(int channel, int volume); // range 0-100 for vol
     
    4036    virtual bool OpenDevice(void);
    4137    virtual void CloseDevice(void);
    4238    virtual void WriteAudio(unsigned char *aubuf, int size);
    43     virtual inline int getSpaceOnSoundcard(void);
    44     virtual inline int getBufferedOnSoundcard(void);
     39    virtual int getSpaceOnSoundcard(void);
     40    virtual int getBufferedOnSoundcard(void);
    4541   
    4642    // The following functions may be overridden, but don't need to be
    47     virtual inline void StartOutputThread(void);
    48     virtual inline void StopOutputThread(void);
     43    virtual void StartOutputThread(void);
     44    virtual void StopOutputThread(void);
    4945
    5046private:
    5147
    52     CoreAudioData * coreaudio_data;
    53     int bufferedBytes;
     48    CoreAudio_impl * mPImpl;
     49    friend class CoreAudio_impl;
    5450};
    5551
    5652#endif